/** * test the ssn method of DkValidation * * @return void */ public function testSsn() { $this->assertTrue(DkValidation::personId('111111-3334')); $this->assertFalse(DkValidation::personId('111111-333')); }
/** * test the phone method of DkValidation * * @return void */ public function testPhone() { $this->assertTrue(DkValidation::phone('88888888')); $this->assertFalse(DkValidation::phone('7777777')); $this->assertFalse(DkValidation::phone('999999999')); }