예제 #1
0
 /**
  * @covers NumbersPHP\Basic::shuffle
  */
 public function testShuffle()
 {
     $expected = array(10, 20, 30, 40, 50, 60, 70);
     $result = \NumbersPHP\Basic::shuffle(array(10, 20, 30, 40, 50, 60, 70));
     $this->assertNotEquals($expected, $result);
     sort($result);
     $this->assertEquals($expected, $result);
 }