function testIntegratedQueryGroupString() { $strings = new qinq\Collection(['bob', 'bed', 'fun', 'fuzz', 'jack', 'jeep']); foreach ($strings->group(function ($s) { return $s[0]; }) as $group) { $this->assertEquals(2, count($group)); } }