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/AbstractEnumTest.php

<?php

namespace CommerceGuys\Addressing\Tests;

use CommerceGuys\Addressing\Subdivision\PatternType;
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \CommerceGuys\Addressing\AbstractEnum
 */
final class AbstractEnumTest extends TestCase
{
    /**
     * @covers ::getAll
     */
    public function testGetAll()
    {
        $expectedValues = ['FULL' => 'full', 'START' => 'start'];
        $values = PatternType::getAll();
        $this->assertEquals($expectedValues, $values);
    }

    /**
     * @covers ::getKey
     */
    public function testGetKey()
    {
        $key = PatternType::getKey('full');
        $this->assertEquals('FULL', $key);

        $key = PatternType::getKey('invalid');
        $this->assertEquals(false, $key);
    }

    /**
     * @covers ::exists
     */
    public function testExists()
    {
        $result = PatternType::exists('start');
        $this->assertEquals(true, $result);

        $result = PatternType::exists('invalid');
        $this->assertEquals(false, $result);
    }

    /**
     * @covers ::assertExists
     */
    public function testAssertExists()
    {
        $this->expectExceptionMessage("\"invalid\" is not a valid PatternType value.");
        $this->expectException(\InvalidArgumentException::class);
        $result = PatternType::assertExists('invalid');
    }

    /**
     * @covers ::assertAllExist
     */
    public function testAssertAllExist()
    {
        $this->expectExceptionMessage("\"invalid\" is not a valid PatternType value.");
        $this->expectException(\InvalidArgumentException::class);
        $result = PatternType::assertAllExist(['start', 'invalid']);
    }
}

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