You are here

public function YamlFileLoaderTest::testNonArrayTagThrowsException in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/Loader/YamlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\YamlFileLoaderTest::testNonArrayTagThrowsException()

@expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException @expectedExceptionMessage A "tags" entry must be an array for service

File

vendor/symfony/dependency-injection/Tests/Loader/YamlFileLoaderTest.php, line 242

Class

YamlFileLoaderTest

Namespace

Symfony\Component\DependencyInjection\Tests\Loader

Code

public function testNonArrayTagThrowsException() {
  $loader = new YamlFileLoader(new ContainerBuilder(), new FileLocator(self::$fixturesPath . '/yaml'));
  $loader
    ->load('badtag4.yml');
}