public function DefinitionTest::testClearTags in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/DefinitionTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionTest::testClearTags()
@covers Symfony\Component\DependencyInjection\Definition::clearTags
File
- vendor/
symfony/ dependency-injection/ Tests/ DefinitionTest.php, line 217
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testClearTags() {
$def = new Definition('stdClass');
$this
->assertSame($def, $def
->clearTags(), '->clearTags() implements a fluent interface');
$def
->addTag('foo', array(
'foo' => 'bar',
));
$def
->clearTags();
$this
->assertEquals(array(), $def
->getTags(), '->clearTags() removes all current tags');
}