public function LegacyDefinitionTest::testSetGetFactoryService in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/LegacyDefinitionTest.php \Symfony\Component\DependencyInjection\Tests\LegacyDefinitionTest::testSetGetFactoryService()
File
- vendor/
symfony/ dependency-injection/ Tests/ LegacyDefinitionTest.php, line 37
Class
- LegacyDefinitionTest
- @group legacy
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetGetFactoryService() {
$def = new Definition('stdClass');
$this
->assertNull($def
->getFactoryService());
$this
->assertSame($def, $def
->setFactoryService('foo.bar'), '->setFactoryService() implements a fluent interface.');
$this
->assertEquals('foo.bar', $def
->getFactoryService(), '->getFactoryService() returns current service to construct this service.');
}