public function test_shuffle_2() { // How do you test random values? // There must be a better way... $arr = array('a' => 'apple', 'b' => 'banana', 'c' => 'carrot'); Enumerator::shuffle_($arr, true); $this->assertArrayHasKey('a', $arr); $this->assertArrayHasKey('b', $arr); $this->assertArrayHasKey('c', $arr); }