This commit is contained in:
wanghai
2026-06-26 19:20:24 +08:00
parent 2e248de433
commit 058673559c
375 changed files with 34935 additions and 1361 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace Tests\ShuyunOpenPlatform;
use ShuyunOpenPlatformBundle\Services\HistoricalSync\HistoricalSyncMobileValidator;
class HistoricalSyncMobileValidatorTest extends \TestCase
{
public function testValidMainlandMobile(): void
{
$this->assertTrue(HistoricalSyncMobileValidator::isValidMainlandMobile('13800138000'));
}
public function testInvalidMobileRejected(): void
{
$this->assertFalse(HistoricalSyncMobileValidator::isValidMainlandMobile(''));
$this->assertFalse(HistoricalSyncMobileValidator::isValidMainlandMobile('23800138000'));
$this->assertFalse(HistoricalSyncMobileValidator::isValidMainlandMobile('1380013800'));
}
}