/** * @param mixed $value * @param string $country * * @dataProvider getInvalidValues */ public function testInvalidValues($value, $country) { $this->assertFalse(PhoneNumber::validate($value, $country)); }
/** * testUSPhoneNumber. * * @param mixed $code * @param string $country * @param bool $result * * @dataProvider phoneNumbers */ public function testUSPhoneNumber($code, $country, $result) { $this->assertEquals(PhoneNumber::validate($code, $country), $result); }