File: Issue360Test.php

package info (click to toggle)
php-giggsey-libphonenumber 9.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,464 kB
  • sloc: php: 484,879; sh: 107; makefile: 37
file content (21 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace libphonenumber\Tests\Issues;

use libphonenumber\PhoneNumberUtil;
use PHPUnit\Framework\TestCase;

/**
 * Test that you can not pass a string and null to isPossibleNumber
 * @see https://github.com/giggsey/libphonenumber-for-php/issues/360
 * @package libphonenumber\Tests\Issues
 */
class Issue360Test extends TestCase
{
    public function testNullRegion(): void
    {
        self::assertTrue(PhoneNumberUtil::getInstance()->isPossibleNumber('+441174960123', null));
    }
}