You are here

public function DefinitionTest::testSetProperty in Zircon Profile 8

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

File

vendor/symfony/dependency-injection/Tests/DefinitionTest.php, line 320

Class

DefinitionTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testSetProperty() {
  $def = new Definition('stdClass');
  $this
    ->assertEquals(array(), $def
    ->getProperties());
  $this
    ->assertSame($def, $def
    ->setProperty('foo', 'bar'));
  $this
    ->assertEquals(array(
    'foo' => 'bar',
  ), $def
    ->getProperties());
}