@@ -26,22 +26,22 @@ class RsValidationTest extends CakeTestCase {
2626 *
2727 * @return void
2828 */
29- public function testJMBG () {
30- $ this ->assertTrue (RsValidation::jmbg ('1707017170007 ' ));
31- $ this ->assertFalse (RsValidation::jmbg ('1707017170008 ' ));
32- $ this ->assertFalse (RsValidation::jmbg ('170701717000 ' ));
33- $ this ->assertFalse (RsValidation::jmbg ('A707017170007 ' ));
29+ public function testPersonId () {
30+ $ this ->assertTrue (RsValidation::personId ('1707017170007 ' ));
31+ $ this ->assertFalse (RsValidation::personId ('1707017170008 ' ));
32+ $ this ->assertFalse (RsValidation::personId ('170701717000 ' ));
33+ $ this ->assertFalse (RsValidation::personId ('A707017170007 ' ));
3434 }
3535
3636/**
3737 * test the postal_number method of RsValidation
3838 *
3939 * @return void
4040 */
41- public function testPostalNumber () {
42- $ this ->assertTrue (RsValidation::postal_number ('11090 ' ));
43- $ this ->assertFalse (RsValidation::postal_number ('111000 ' ));
44- $ this ->assertFalse (RsValidation::postal_number ('A1100 ' ));
41+ public function testPostal () {
42+ $ this ->assertTrue (RsValidation::postal ('11090 ' ));
43+ $ this ->assertFalse (RsValidation::postal ('111000 ' ));
44+ $ this ->assertFalse (RsValidation::postal ('A1100 ' ));
4545 }
4646
4747/**
@@ -50,8 +50,8 @@ public function testPostalNumber() {
5050 * @return void
5151 */
5252 public function testAddressCode () {
53- $ this ->assertTrue (RsValidation::address_code ('122407 ' ));
54- $ this ->assertFalse (RsValidation::address_code ('11090 ' ));
55- $ this ->assertFalse (RsValidation::address_code ('A11090 ' ));
53+ $ this ->assertTrue (RsValidation::addressCode ('122407 ' ));
54+ $ this ->assertFalse (RsValidation::addressCode ('11090 ' ));
55+ $ this ->assertFalse (RsValidation::addressCode ('A11090 ' ));
5656 }
5757}
0 commit comments