File manager - Edit - /home/palg2351/public_html/wp-content/plugins/sejoli/third-parties/brick/phonenumber/tests/ConstantTest.php
Back
<?php namespace Brick\PhoneNumber\Tests; use Brick\PhoneNumber\PhoneNumberFormat; use Brick\PhoneNumber\PhoneNumberType; /** * Tests that the constants are up-to-date with libphonenumber. */ class ConstantTest extends \PHPUnit_Framework_TestCase { /** * Compares the constants of two classes. * * @param string $classExpected The name or the reference class. * @param string $classActual The name of the class to test against the reference class. */ private function assertConstantsEqual($classExpected, $classActual) { $expected = new \ReflectionClass($classExpected); $actual = new \ReflectionClass($classActual); $this->assertSame($expected->getConstants(), $actual->getConstants()); } public function testPhoneNumberFormats() { $this->assertConstantsEqual(\libphonenumber\PhoneNumberFormat::class, PhoneNumberFormat::class); } public function testPhoneNumberTypes() { $this->assertConstantsEqual(\libphonenumber\PhoneNumberType::class, PhoneNumberType::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings