mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Adding an assert to check for zero prefixed numbers
This commit is contained in:
parent
7546be6394
commit
7d080ea2d1
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue