Symfony\Component\DependencyInjection\Tests\DefinitionDecoratorTest::testSetLazy PHP Method

testSetLazy() public method

public testSetLazy ( )
    public function testSetLazy()
    {
        $def = new DefinitionDecorator('foo');

        $this->assertFalse($def->isLazy());
        $this->assertSame($def, $def->setLazy(false));
        $this->assertFalse($def->isLazy());
        $this->assertEquals(array('lazy' => true), $def->getChanges());
    }