Exemplo n.º 1
0
 public function testRandomItem()
 {
     $fruits = new Collection([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
     $random = $fruits->random();
     $assertion = false;
     if ($random > 0 && $random <= 10) {
         $assertion = true;
     }
     $this->assertTrue($assertion, $random);
 }