Skip to content

Commit 0ce50e0

Browse files
Thomason, JamesThomason, James
authored andcommitted
Add assertions to tests for Travis CI
1 parent 3739b73 commit 0ce50e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,8 @@ public function testCompileWithArrayResolveEnv()
673673
$container->setParameter('foo', '%env(json:ARRAY)%');
674674
$container->compile(true);
675675

676+
$this->assertSame(['foo' => 'bar'], $container->getParameter('foo'));
677+
676678
putenv('ARRAY');
677679
}
678680

@@ -686,6 +688,9 @@ public function testCompileWithArrayAndAnotherResolveEnv()
686688
$container->setParameter('bar', '%env(DUMMY_ENV_VAR)%');
687689
$container->compile(true);
688690

691+
$this->assertSame(['foo' => 'bar'], $container->getParameter('foo'));
692+
$this->assertSame('abc', $container->getParameter('bar'));
693+
689694
putenv('DUMMY_ENV_VAR');
690695
putenv('ARRAY');
691696
}

0 commit comments

Comments
 (0)