示例#1
0
 /**
  * @covers  IdentityMap::set
  * @depends testIsInitiallyEmpty
  */
 public function testObjectCanBeAdded(IdentityMap $map)
 {
     $map->set(1, self::$object);
     $idToObject = $this->readAttribute($map, 'idToObject');
     $objectToId = $this->readAttribute($map, 'objectToId');
     $this->assertContains(self::$object, $idToObject);
     $this->assertContains(self::$object, $objectToId);
     return $map;
 }