Exemple #1
0
 public function testSetStorage()
 {
     $storage = $this->getMock('Morph_Storage');
     $propertySet = new Morph_PropertySet();
     $propertySet['P1'] = $this->getMockPropertyForSetStorage();
     $propertySet->setStorage($storage);
 }
Exemple #2
0
 /**
  * Sets the storage object for this object
  * @param Morph_Storage $storage
  * @return void
  */
 public function __setStorage(Morph_Storage $storage)
 {
     $this->Storage = $storage;
     $this->propertySet->setStorage($storage);
 }