|
16 | 16 |
|
17 | 17 | use PHPUnit\Framework\TestCase; |
18 | 18 | use Psr\Container\ContainerInterface as PsrContainerInterface; |
| 19 | +use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait; |
19 | 20 | use Symfony\Component\Config\Resource\ComposerResource; |
20 | 21 | use Symfony\Component\Config\Resource\DirectoryResource; |
21 | 22 | use Symfony\Component\Config\Resource\FileResource; |
|
45 | 46 |
|
46 | 47 | class ContainerBuilderTest extends TestCase |
47 | 48 | { |
| 49 | + use ForwardCompatTestTrait; |
| 50 | + |
48 | 51 | public function testDefaultRegisteredDefinitions() |
49 | 52 | { |
50 | 53 | $builder = new ContainerBuilder(); |
@@ -168,7 +171,7 @@ public function testGetCreatesServiceBasedOnDefinition() |
168 | 171 | $builder = new ContainerBuilder(); |
169 | 172 | $builder->register('foo', 'stdClass'); |
170 | 173 |
|
171 | | - $this->assertInternalType('object', $builder->get('foo'), '->get() returns the service definition associated with the id'); |
| 174 | + $this->assertIsObject($builder->get('foo'), '->get() returns the service definition associated with the id'); |
172 | 175 | } |
173 | 176 |
|
174 | 177 | public function testGetReturnsRegisteredService() |
@@ -662,7 +665,7 @@ public function testResolveEnvValuesWithArray() |
662 | 665 | $container->resolveEnvPlaceholders('%dummy%', true); |
663 | 666 | $container->resolveEnvPlaceholders('%dummy2%', true); |
664 | 667 |
|
665 | | - $this->assertInternalType('array', $container->resolveEnvPlaceholders('%dummy2%', true)); |
| 668 | + $this->assertIsArray($container->resolveEnvPlaceholders('%dummy2%', true)); |
666 | 669 |
|
667 | 670 | foreach ($dummyArray as $key => $value) { |
668 | 671 | $this->assertArrayHasKey($key, $container->resolveEnvPlaceholders('%dummy2%', true)); |
|
0 commit comments