public function DefinitionTest::testSetGetProperties in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionTest::testSetGetProperties()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ DefinitionTest.php, line 313
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetGetProperties() {
$def = new Definition('stdClass');
$this
->assertEquals(array(), $def
->getProperties());
$this
->assertSame($def, $def
->setProperties(array(
'foo' => 'bar',
)));
$this
->assertEquals(array(
'foo' => 'bar',
), $def
->getProperties());
}