You are here

public function CheckDefinitionValidityPassTest::testValidTags in Zircon Profile 8.0

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

File

vendor/symfony/dependency-injection/Tests/Compiler/CheckDefinitionValidityPassTest.php, line 76

Class

CheckDefinitionValidityPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testValidTags() {
  $container = new ContainerBuilder();
  $container
    ->register('a', 'class')
    ->addTag('foo', array(
    'bar' => 'baz',
  ));
  $container
    ->register('b', 'class')
    ->addTag('foo', array(
    'bar' => null,
  ));
  $container
    ->register('c', 'class')
    ->addTag('foo', array(
    'bar' => 1,
  ));
  $container
    ->register('d', 'class')
    ->addTag('foo', array(
    'bar' => 1.1,
  ));
  $this
    ->process($container);
}