public function testKeys() { $arrayObject = new ArrayObject(['one' => 1, 'two' => 2, 'three' => 3]); $new = $arrayObject->keys(); $this->assertSame(['one', 'two', 'three'], $new->getArrayCopy()); }