Example #1
0
 function testIntegratedQuerySelectCallback()
 {
     $strings = new qinq\Collection(['foo', 'bar', 'bink', 'bean', 'jacob', 'johnson']);
     $matches = [3, 3, 4, 4, 5, 7];
     foreach ($strings->select('strlen') as $length) {
         $match = array_shift($matches);
         $this->assertEquals($match, $length);
     }
 }