/**
* @dataProvider arraysOfString
*/
public function testThatCollectionApplyWorks(\Pinq\ICollection $collection, array $data)
{
$collection->apply(function (&$i) {
sort($i);
});
$this->assertMatches($collection, [['b', 'd', 'l', 'q'], ['a', 'a', 'c', 'd'], ['d', 'd', 'f', 'q'], ['a', 'm', 't', 'v']]);
}