public function DefinitionTest::testSetGetScope 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::testSetGetScope()
@covers Symfony\Component\DependencyInjection\Definition::setScope @covers Symfony\Component\DependencyInjection\Definition::getScope
File
- vendor/
symfony/ dependency-injection/ Tests/ DefinitionTest.php, line 134
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetGetScope() {
$def = new Definition('stdClass');
$this
->assertEquals('container', $def
->getScope());
$this
->assertSame($def, $def
->setScope('foo'));
$this
->assertEquals('foo', $def
->getScope());
}