You are here

public function DefinitionDecoratorTest::testSetPublic 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::testSetPublic()

File

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

Class

DefinitionDecoratorTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testSetPublic() {
  $def = new DefinitionDecorator('foo');
  $this
    ->assertTrue($def
    ->isPublic());
  $this
    ->assertSame($def, $def
    ->setPublic(false));
  $this
    ->assertFalse($def
    ->isPublic());
  $this
    ->assertEquals(array(
    'public' => true,
  ), $def
    ->getChanges());
}