public function DefinitionTest::testSetIsLazy 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::testSetIsLazy()
@covers Symfony\Component\DependencyInjection\Definition::setLazy @covers Symfony\Component\DependencyInjection\Definition::isLazy
File
- vendor/
symfony/ dependency-injection/ Tests/ DefinitionTest.php, line 183
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetIsLazy() {
$def = new Definition('stdClass');
$this
->assertFalse($def
->isLazy(), '->isLazy() returns false by default');
$this
->assertSame($def, $def
->setLazy(true), '->setLazy() implements a fluent interface');
$this
->assertTrue($def
->isLazy(), '->isLazy() returns true if the service is lazy.');
}