Пример #1
0
 public function testGettingMaxItemsFromCollection()
 {
     $a = new Entity();
     $a->foo = 10;
     $b = new Entity();
     $b->foo = 20;
     $c = new Collection([$a, $b]);
     $this->assertEquals(20, $c->max('foo'));
 }