Ejemplo n.º 1
0
 public function test_random_2()
 {
     $arr = array('pig', 'cow', 'dog', 'horse');
     Enumerator::random_($arr, 2);
     $this->assertInternalType('array', $arr);
     $this->assertEquals(2, count($arr));
     $this->assertContains($arr[0], array('pig', 'cow', 'dog', 'horse'));
     $this->assertContains($arr[1], array('pig', 'cow', 'dog', 'horse'));
 }