Пример #1
0
 function testIntegratedQueryUnion()
 {
     $numbers = new qinq\Collection([1, 2, 5, 7, 7]);
     $union = new qinq\Collection([2, 2, 3, 5]);
     $matches = [1, 2, 3, 5, 7];
     foreach ($numbers->union($union) as $number) {
         $match = array_shift($matches);
         $this->assertEquals($match, $number);
     }
 }