public function shouldGenerateRandomNumber() { //given $function = Functions::random(); //when $result = $function(); //then $this->assertGreaterThanOrEqual(0, $result); $this->assertLessThanOrEqual(getrandmax(), $result); }