public function FormatterTest::testInvalidNumber in Telephone Formatter 8
Number was successfully parsed but invalid.
::covers format.
@expectedException \InvalidArgumentException @expectedExceptionMessage Number is invalid.
File
- tests/
src/ Unit/ FormatterTest.php, line 75
Class
- FormatterTest
- Formatter test.
Namespace
Drupal\Tests\telephone_formatter\UnitCode
public function testInvalidNumber() {
$this->formatterService
->format('987654320', PhoneNumberFormat::NATIONAL, 'NO');
}