public function find($id)
{
if (isset($this->items[$id])) {
return $this->items[$id];
}
}
public function testAddRemoveFind() { $id = 5; $transformer = $this->getTransformerMock($id); $this->coll->add($transformer); $this->assertSame($transformer, $this->coll->find($id)); $this->coll->remove($id); $this->assertNull($this->coll->find($id)); }