public function testThatKeysSupportNonScalarKeys(\Pinq\ITraversable $traversable, array $data) { $values = $traversable->indexBy(function () { return new \stdClass(); })->reindex(); $this->assertMatches($values, array_values($data)); }