function testIntegratedSelectorMap() { $strings = new qinq\Collection(['foo' => ['bink' => 'roo'], 'bar' => 'baz', 'bink' => 'bunk']); $matches_value = [['bink' => 'roo'], 'bunk']; foreach ($strings->selector('bink') as $value) { $match_value = array_shift($matches_value); $this->assertEquals($match_value, $value); } }