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); }
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); }