예제 #1
0
파일: ObjectTest.php 프로젝트: jgswift/qinq
 function testIntegratedQueryIntersect()
 {
     $numbers = new qinq\Collection(range(1, 4));
     $compare = new qinq\Collection(range(2, 3));
     $matches = [2, 3];
     foreach ($numbers->intersect($compare) as $number) {
         $match = array_shift($matches);
         $this->assertEquals($match, $number);
     }
 }