/** * @test */ public function is_should_return_keys() { if ($this->coll instanceof MapInterface) { $this->coll->add(new Pair(0, 'value')); } else { $this->coll->add('value'); } $keys = $this->coll->keys(); $this->assertInstanceOf(VectorInterface::class, $keys); $this->assertEquals([0], $keys->toArray()); }