'bar', 'bar' => 'baz', 'baz' => 'qux', ]; $shuffled = Arr\shuffle($array); static::assertSameSize($shuffled, $array); static::assertNotSame($shuffled, $array); foreach ($shuffled as $value) { self::assertTrue(Arr\contains($array, $value)); } } }