public function DefinitionTest::testSetGetConfigurator in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionTest::testSetGetConfigurator()
@covers Symfony\Component\DependencyInjection\Definition::setConfigurator @covers Symfony\Component\DependencyInjection\Definition::getConfigurator
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ DefinitionTest.php, line 209
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetGetConfigurator() {
$def = new Definition('stdClass');
$this
->assertSame($def, $def
->setConfigurator('foo'), '->setConfigurator() implements a fluent interface');
$this
->assertEquals('foo', $def
->getConfigurator(), '->getConfigurator() returns the configurator');
}