You are here

public function DefinitionDecoratorTest::testSetLazy in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionDecoratorTest::testSetLazy()

File

vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php, line 88

Class

DefinitionDecoratorTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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());
}