!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/random-lib/test/Unit/RandomLib/   drwxrwxr-x
Free 11.49 GB of 61.93 GB (18.56%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * The RandomLib library for securely generating random numbers and strings in PHP
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @copyright  2011 The Authors
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    Build @@version@@
 */
namespace RandomLib;

use 
SecurityLib\Strength;

class 
FactoryTest extends \PHPUnit_Framework_TestCase
{
    public function 
testConstruct()
    {
        
$factory = new Factory();
        
$this->assertTrue($factory instanceof Factory);
    }

    public function 
testGetGeneratorFallback()
    {
        
$factory = new Factory();
        
$generator $factory->getGenerator(new Strength(Strength::VERYLOW));
        
$mixer call_user_func(array(
            
get_class($generator->getMixer()),
            
'getStrength',
        ));
        
$this->assertTrue($mixer->compare(new Strength(Strength::VERYLOW)) <= 0);
    }

    
/**
     * @covers RandomLib\Factory::getMediumStrengthGenerator
     * @covers RandomLib\Factory::getGenerator
     * @covers RandomLib\Factory::findMixer
     * @covers RandomLib\Factory::findSources
     */
    
public function testGetMediumStrengthGenerator()
    {
        
$factory = new Factory();
        
$generator $factory->getMediumStrengthGenerator();
        
$this->assertTrue($generator instanceof Generator);
        
$mixer call_user_func(array(
            
get_class($generator->getMixer()),
            
'getStrength',
        ));
        
$this->assertTrue($mixer->compare(new Strength(Strength::MEDIUM)) <= 0);
        foreach (
$generator->getSources() as $source) {
            
$strength call_user_func(array(get_class($source), 'getStrength'));
            
$this->assertTrue($strength->compare(new Strength(Strength::MEDIUM)) >= 0);
        }
    }

    
/**
     * @expectedException RuntimeException
     * @expectedExceptionMessage Could not find sources
     */
    
public function testNoAvailableSource()
    {
        
$factory = new Factory();
        
$sources = new \ReflectionProperty($factory'sources');
        
$sources->setAccessible(true);
        
$sources->setValue($factory, array());
        
$factory->getMediumStrengthGenerator();
    }
}

:: 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.882 ]--