public function YamlFileLoaderTest::testTagWithAttributeArrayThrowsException in Zircon Profile 8        
                          
                  
                        Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/Loader/YamlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\YamlFileLoaderTest::testTagWithAttributeArrayThrowsException()
File
 
   - vendor/symfony/dependency-injection/Tests/Loader/YamlFileLoaderTest.php, line 260
Class
  
  - YamlFileLoaderTest 
Namespace
  Symfony\Component\DependencyInjection\Tests\Loader
Code
public function testTagWithAttributeArrayThrowsException() {
  $loader = new YamlFileLoader(new ContainerBuilder(), new FileLocator(self::$fixturesPath . '/yaml'));
  try {
    $loader
      ->load('badtag3.yml');
    $this
      ->fail('->load() should throw an exception when a tag-attribute is not a scalar');
  } catch (\Exception $e) {
    $this
      ->assertInstanceOf('Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException', $e, '->load() throws an InvalidArgumentException if a tag-attribute is not a scalar');
    $this
      ->assertStringStartsWith('A "tags" attribute must be of a scalar-type for service "foo_service", tag "foo", attribute "bar"', $e
      ->getMessage(), '->load() throws an InvalidArgumentException if a tag-attribute is not a scalar');
  }
}