public function LegacyDefinitionTest::testSetGetFactoryMethod 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::testSetGetFactoryMethod()
File
- vendor/
symfony/ dependency-injection/ Tests/ LegacyDefinitionTest.php, line 29
Class
- LegacyDefinitionTest
- @group legacy
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetGetFactoryMethod() {
$def = new Definition('stdClass');
$this
->assertNull($def
->getFactoryMethod());
$this
->assertSame($def, $def
->setFactoryMethod('foo'), '->setFactoryMethod() implements a fluent interface');
$this
->assertEquals('foo', $def
->getFactoryMethod(), '->getFactoryMethod() returns the factory method name');
}