コード例 #1
0
 public function testInstanceManagerCanPersistProperties()
 {
     $im = new InstanceManager();
     $im->setProperty('ZendTest\\Di\\TestAsset\\BasicClass', 'foo', 'bar');
     $this->assertTrue($im->hasProperties('ZendTest\\Di\\TestAsset\\BasicClass'));
     $this->assertTrue($im->hasProperty('ZendTest\\Di\\TestAsset\\BasicClass', 'foo'));
     $this->assertEquals('bar', $im->getProperty('ZendTest\\Di\\TestAsset\\BasicClass', 'foo'));
 }