'bar', 'bar' => 'baz', 'baz' => 'qux', ]; $keys = Arr\keys($array); self::assertSameSize($keys, $array); self::assertSame($keys, \array_keys($array)); foreach ($array as $key => $value) { self::assertTrue(Arr\contains($keys, $key)); } } }