Adding an assert to check for zero prefixed numbers

This commit is contained in:
Jelle Henkens 2012-05-22 16:32:16 +01:00
parent 7546be6394
commit 7d080ea2d1

View file

@ -1973,6 +1973,7 @@ class ValidationTest extends CakeTestCase {
$this->assertFalse(Validation::naturalNumber('-2'));
$this->assertFalse(Validation::naturalNumber(-2));
$this->assertFalse(Validation::naturalNumber('0'));
$this->assertFalse(Validation::naturalNumber('050'));
$this->assertTrue(Validation::naturalNumber('2'));
$this->assertTrue(Validation::naturalNumber(49));