@@ -1770,33 +1770,6 @@ function testInList() {
1770
1770
$ this ->assertFalse (Validation::inList ('three ' , array ('one ' , 'two ' )));
1771
1771
}
1772
1772
1773
- /**
1774
- * testValidNumber method
1775
- *
1776
- * @access public
1777
- * @return void
1778
- */
1779
- function testValidNumber () {
1780
- $ this ->assertTrue (Validation::custom ('12345 ' , VALID_NUMBER ));
1781
- $ this ->assertTrue (Validation::custom ('-12345 ' , VALID_NUMBER ));
1782
- $ this ->assertTrue (Validation::custom ('+12345 ' , VALID_NUMBER ));
1783
- $ this ->assertFalse (Validation::custom ('--12345 ' , VALID_NUMBER ));
1784
- $ this ->assertFalse (Validation::custom ('++12345 ' , VALID_NUMBER ));
1785
- $ this ->assertFalse (Validation::custom ('a12345 ' , VALID_NUMBER ));
1786
- $ this ->assertFalse (Validation::custom ('12345z ' , VALID_NUMBER ));
1787
- $ this ->assertFalse (Validation::custom ('-a12345z ' , VALID_NUMBER ));
1788
- $ this ->assertFalse (Validation::custom ('- ' , VALID_NUMBER ));
1789
- $ this ->assertFalse (Validation::custom ('123-12345 ' , VALID_NUMBER ));
1790
- $ this ->assertTrue (Validation::custom ('1.2345 ' , VALID_NUMBER ));
1791
- $ this ->assertTrue (Validation::custom ('-1.2345 ' , VALID_NUMBER ));
1792
- $ this ->assertTrue (Validation::custom ('+1.2345 ' , VALID_NUMBER ));
1793
- $ this ->assertFalse (Validation::custom ('1..2345 ' , VALID_NUMBER ));
1794
- $ this ->assertFalse (Validation::custom ('-1..2345 ' , VALID_NUMBER ));
1795
- $ this ->assertFalse (Validation::custom ('+1..2345 ' , VALID_NUMBER ));
1796
- $ this ->assertFalse (Validation::custom ('.2345 ' , VALID_NUMBER ));
1797
- $ this ->assertFalse (Validation::custom ('12345. ' , VALID_NUMBER ));
1798
- }
1799
-
1800
1773
/**
1801
1774
* testRange method
1802
1775
*
0 commit comments