public function DefinitionTest::testSetGetClass in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/DefinitionTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionTest::testSetGetClass()
@covers Symfony\Component\DependencyInjection\Definition::setClass @covers Symfony\Component\DependencyInjection\Definition::getClass
File
- vendor/
symfony/ dependency-injection/ Tests/ DefinitionTest.php, line 49
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetGetClass() {
$def = new Definition('stdClass');
$this
->assertSame($def, $def
->setClass('foo'), '->setClass() implements a fluent interface');
$this
->assertEquals('foo', $def
->getClass(), '->getClass() returns the class name');
}