remove(implode(DIRECTORY_SEPARATOR, [ dirname(__DIR__), 'fixtures', 'cache', 'test', ])); } /** * @test * @dataProvider formatProvider * * @param string $format */ public function container_should_compile_and_load($format) { $kernel = new AppKernel('test', true, $format); $kernel->boot(); $testService = $kernel->getContainer()->get('test_service'); $this->assertInstanceOf(S3Client::class, $testService->getS3Client()); $this->assertInstanceOf(LambdaClient::class, $testService->getLambdaClient()); $this->assertNotInstanceOf(DynamoDbClient::class, $testService->getCodeDeployClient()); } public function formatProvider() { return [ ['yml'], ['php'], ['xml'], ]; } }