Пример #1
0
 public function testAddingEntitiesToCollection()
 {
     $c = new Collection();
     $e = new Entity();
     $f = new Entity();
     $c->add($e)->add($f);
     $this->assertEquals(array($e, $f), $c->all());
 }