File tree Expand file tree Collapse file tree 3 files changed +47
-6
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +47
-6
lines changed Original file line number Diff line number Diff line change 7
7
- hhvm
8
8
9
9
env :
10
- - AWS_BUNDLE_FORMAT_UNDER_TEST="yml"
11
- - AWS_BUNDLE_FORMAT_UNDER_TEST="php"
12
- - AWS_BUNDLE_FORMAT_UNDER_TEST="xml"
10
+ - COMPOSER_OPTS=""
11
+ - COMPOSER_OPTS="--prefer-lowest"
13
12
14
13
sudo : false
15
14
16
15
install : travis_retry composer install --no-interaction --prefer-source
17
16
18
- script : vendor/bin/phpunit
17
+ script : vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ class AwsExtensionTest extends \PHPUnit_Framework_TestCase
19
19
20
20
public function setUp ()
21
21
{
22
- $ format = getenv ('AWS_BUNDLE_FORMAT_UNDER_TEST ' ) ?: 'yml ' ;
23
- $ kernel = new AppKernel ('test ' , true , $ format );
22
+ $ kernel = new AppKernel ('test ' , true );
24
23
$ kernel ->boot ();
25
24
26
25
$ this ->container = $ kernel ->getContainer ();
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Aws \Symfony \DependencyInjection ;
3
+
4
+
5
+ use AppKernel ;
6
+ use Symfony \Component \Filesystem \Filesystem ;
7
+
8
+ class ConfigurationTest extends \PHPUnit_Framework_TestCase
9
+ {
10
+ public function setUp ()
11
+ {
12
+ (new Filesystem )
13
+ ->remove (implode (DIRECTORY_SEPARATOR , [
14
+ dirname (__DIR__ ),
15
+ 'fixtures ' ,
16
+ 'cache ' ,
17
+ 'test ' ,
18
+ ]));
19
+ }
20
+
21
+ /**
22
+ * @test
23
+ * @dataProvider formatProvider
24
+ *
25
+ * @param string $format
26
+ */
27
+ public function container_should_compile_and_load ($ format )
28
+ {
29
+ $ kernel = new AppKernel ('test ' , true , $ format );
30
+ $ kernel ->boot ();
31
+
32
+ $ this ->assertTrue ($ kernel ->getContainer ()->has ('aws_sdk ' ));
33
+ }
34
+
35
+ public function formatProvider ()
36
+ {
37
+ return [
38
+ ['yml ' ],
39
+ ['php ' ],
40
+ ['xml ' ],
41
+ ];
42
+ }
43
+ }
You can’t perform that action at this time.
0 commit comments