Fix unit tests for Security::getRandomNumber()

This commit is contained in:
Kijin Sung 2016-03-13 22:11:30 +09:00
parent 647bc7c112
commit ddab5ce8d8

View file

@ -71,7 +71,7 @@ class SecurityTest extends \Codeception\TestCase\Test
$min = mt_rand(0, 10000);
$max = $min + mt_rand(0, 10000);
$random = Rhymix\Framework\Security::getRandomNumber($min, $max);
$this->assertTrue($random >= $min && $random < $max);
$this->assertTrue($random >= $min && $random <= $max);
}
}