public function ContainerTest::testIsScopeActive in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ContainerTest::testIsScopeActive()
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerTest.php, line 580
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testIsScopeActive() {
$c = new Container();
$this
->assertFalse($c
->isScopeActive('foo'));
$c
->addScope(new Scope('foo'));
$this
->assertFalse($c
->isScopeActive('foo'));
$c
->enterScope('foo');
$this
->assertTrue($c
->isScopeActive('foo'));
$c
->leaveScope('foo');
$this
->assertFalse($c
->isScopeActive('foo'));
}