Ejemplo n.º 1
0
 /**
  * @test
  */
 public function setInfoSetsTheDataAssociatedWithTheCurrentIteratorEntry()
 {
     $objectStorage = new Tx_Extbase_Persistence_ObjectStorage();
     $object1 = new StdClass();
     $object2 = new StdClass();
     $objectStorage->attach($object1);
     $objectStorage->attach($object2, 'foo');
     $objectStorage->rewind();
     $objectStorage->setInfo(42);
     $objectStorage->next();
     $objectStorage->setInfo('bar');
     $this->assertEquals($objectStorage[$object1], 42);
     $this->assertEquals($objectStorage[$object2], 'bar');
 }