File tree Expand file tree Collapse file tree 5 files changed +61
-18
lines changed Expand file tree Collapse file tree 5 files changed +61
-18
lines changed Original file line number Diff line number Diff line change 33 "type" : " symfony-bundle" ,
44 "description" : " Swiftmailer Transport and Symfony bundle for Sendgrid" ,
55 "homepage" : " https://github.com/expertcoder/SwiftmailerSendGridBundle" ,
6+ "license" : " MIT" ,
67 "authors" : [
78 {
89 "name" : " Samual Anthony" ,
1516 ],
1617 "require" : {
1718 "php" : " >=5.4" ,
18- "symfony/symfony" : " >=2.7" ,
19+ "symfony/symfony" : " ~2.7|~3.3|~4.0" ,
20+ "swiftmailer/swiftmailer" : " >=4.2.0,<6.0.0" ,
1921 "sendgrid/sendgrid" : " ^5.0"
2022 },
2123 "autoload" : {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+
3+ <phpunit backupGlobals =" false"
4+ backupStaticAttributes =" false"
5+ colors =" false"
6+ convertErrorsToExceptions =" true"
7+ convertNoticesToExceptions =" true"
8+ convertWarningsToExceptions =" true"
9+ processIsolation =" false"
10+ stopOnFailure =" false"
11+ syntaxCheck =" false"
12+ codecoverage =" true"
13+ bootstrap =" ./vendor/autoload.php"
14+ >
15+
16+ <formatter type =" clover" usefile =" false" />
17+ <testsuites >
18+ <testsuite name =" Test Suite" >
19+ <directory >./tests</directory >
20+ </testsuite >
21+ </testsuites >
22+
23+ <filter >
24+ <whitelist >
25+ <directory suffix =" .php" >./</directory >
26+ <exclude >
27+ <directory >vendor</directory >
28+ <directory >tests</directory >
29+ </exclude >
30+ </whitelist >
31+ </filter >
32+ </phpunit >
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ protected function setUp()
2424
2525 public function testInitBundle ()
2626 {
27+ // Create a new Kernel
28+ $ kernel = $ this ->createKernel ();
29+
30+ // Add some configuration
31+ $ kernel ->addConfigFile (__DIR__ .'/config_test.yml ' );
32+
2733 // Boot the kernel.
2834 $ this ->bootKernel ();
2935
@@ -39,21 +45,4 @@ public function testInitBundle()
3945 $ this ->assertTrue ($ container ->hasParameter ('expertcoder_swiftmailer_sendgrid.api_key ' ));
4046 $ this ->assertTrue ($ container ->hasParameter ('expertcoder_swiftmailer_sendgrid.categories ' ));
4147 }
42-
43- public function testBundleWithDifferentConfiguration ()
44- {
45- // Create a new Kernel
46- $ kernel = $ this ->createKernel ();
47-
48- // Add some configuration
49- $ kernel ->addConfigFile (__DIR__ .'/config.yml ' );
50-
51- // Add some other bundles we depend on
52- $ kernel ->addBundle (OtherBundle::class);
53-
54- // Boot the kernel as normal ...
55- $ this ->bootKernel ();
56-
57- // ...
58- }
5948}
Original file line number Diff line number Diff line change 1+ expert_coder_swiftmailer_send_grid :
2+ api_key : myApiKey
3+ categories : [category1, category2]
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # Helper script for testing purpose (local tests)
3+ # One argument needed: Symfony major version to test against (ie. 2, 3 or 4)
4+
5+ if [ $# -eq 0 ] # check if argument exists
6+ then
7+ echo " Please add Symfony major version to test against (ex: 'sh tests/manual-test.sh 2' to test Sf 2.7)"
8+ exit 0;
9+ fi
10+
11+ composer require --dev --no-update symfony/phpunit-bridge:^4.0 dunglas/symfony-lock:^$1
12+ composer update --prefer-dist --no-interaction --prefer-stable --quiet
13+ composer update --prefer-stable --prefer-lowest --prefer-dist --no-interaction
14+ ./vendor/bin/simple-phpunit install
15+
16+ composer validate --strict --no-check-lock
17+ ./vendor/bin/simple-phpunit
You can’t perform that action at this time.
0 commit comments