Exemplo n.º 1
0
 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);
     }
 }