Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding an assert to check for zero prefixed numbers

  • Loading branch information...
commit 7d080ea2d1e74ba869a8bbd17344cb1fde892834 1 parent 7546be6
Jelle Henkens jellehenkens authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Cake/Test/Case/Utility/ValidationTest.php
1  lib/Cake/Test/Case/Utility/ValidationTest.php
View
@@ -1973,6 +1973,7 @@ public function testNaturalNumber() {
$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));
Please sign in to comment.
Something went wrong with that request. Please try again.