Beispiel #1
0
 /**
  * @dataProvider simpleArrayProvider
  */
 public function testShuffle(array $array)
 {
     $ma = new ImmutableArray($array);
     $copiedMa = $ma->shuffle();
     shuffle($array);
     $this->assertTrue($copiedMa !== $ma);
     $this->assertTrue(count($array) === count($copiedMa->toArray()));
 }
 /**
  * @dataProvider simpleArrayProvider
  *
  * @param array $array
  */
 public function testShuffle(array $array)
 {
     $arrayzy = new A($array);
     $resultArrayzy = $arrayzy->shuffle();
     shuffle($array);
     $this->assertNotSame($arrayzy, $resultArrayzy);
     $this->assertSameSize($array, $resultArrayzy->toArray());
 }