Skip to content
This repository
Browse code

Adding an assert to check for zero prefixed numbers

  • Loading branch information...
commit 7d080ea2d1e74ba869a8bbd17344cb1fde892834 1 parent 7546be6
Jelle Henkens authored May 22, 2012
1  lib/Cake/Test/Case/Utility/ValidationTest.php
@@ -1973,6 +1973,7 @@ public function testNaturalNumber() {
1973 1973
 		$this->assertFalse(Validation::naturalNumber('-2'));
1974 1974
 		$this->assertFalse(Validation::naturalNumber(-2));
1975 1975
 		$this->assertFalse(Validation::naturalNumber('0'));
  1976
+		$this->assertFalse(Validation::naturalNumber('050'));
1976 1977
 
1977 1978
 		$this->assertTrue(Validation::naturalNumber('2'));
1978 1979
 		$this->assertTrue(Validation::naturalNumber(49));

0 notes on commit 7d080ea

Please sign in to comment.
Something went wrong with that request. Please try again.