Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

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

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/Zone/ZoneTerritoryTest.php

<?php

namespace CommerceGuys\Addressing\Tests\Zone;

use CommerceGuys\Addressing\Address;
use CommerceGuys\Addressing\Zone\ZoneTerritory;
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \CommerceGuys\Addressing\Zone\ZoneTerritory
 */
final class ZoneTerritoryTest extends TestCase
{
    /**
     * @covers ::__construct
     *
     *
     */
    public function testMissingProperty()
    {
        $this->expectException(\InvalidArgumentException::class);
        $territory = new ZoneTerritory([]);
    }

    /**
     * @covers ::__construct
     * @covers ::getCountryCode
     * @covers ::getAdministrativeArea
     * @covers ::getLocality
     * @covers ::getDependentLocality
     * @covers ::getIncludedPostalCodes
     * @covers ::getExcludedPostalCodes
     * @covers ::match
     */
    public function testValid()
    {
        $definition = [
            'country_code' => 'BR',
            'administrative_area' => 'RJ',
            'locality' => 'Areal',
            'dependent_locality' => 'Random',
            'included_postal_codes' => '123456',
            'excluded_postal_codes' => '789',
        ];
        $territory = new ZoneTerritory($definition);

        $this->assertEquals($definition['country_code'], $territory->getCountryCode());
        $this->assertEquals($definition['administrative_area'], $territory->getAdministrativeArea());
        $this->assertEquals($definition['locality'], $territory->getLocality());
        $this->assertEquals($definition['dependent_locality'], $territory->getDependentLocality());
        $this->assertEquals($definition['included_postal_codes'], $territory->getIncludedPostalCodes());
        $this->assertEquals($definition['excluded_postal_codes'], $territory->getExcludedPostalCodes());

        $brazilian_address = new Address('BR', 'RJ', 'Areal', 'Random', '123456');
        $serbian_address = new Address('RS');
        $this->assertTrue($territory->match($brazilian_address));
        $this->assertFalse($territory->match($serbian_address));
    }
}

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