!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/phpunit/phpunit/src/Framework/Constraint/   drwxr-xr-x
Free 116.8 GB of 200.55 GB (58.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     StringMatches.php (2.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use SebastianBergmann\Diff\Differ;

/**
 * ...
 *
 * @since Class available since Release 3.5.0
 */
class PHPUnit_Framework_Constraint_StringMatches extends PHPUnit_Framework_Constraint_PCREMatch
{
    
/**
     * @var string
     */
    
protected $string;

    
/**
     * @param string $string
     */
    
public function __construct($string)
    {
        
parent::__construct($string);

        
$this->pattern $this->createPatternFromFormat(
            
preg_replace('/\r\n/'"\n"$string)
        );

        
$this->string $string;
    }

    protected function 
failureDescription($other)
    {
        return 
'format description matches text';
    }

    protected function 
additionalFailureDescription($other)
    {
        
$from preg_split('(\r\n|\r|\n)'$this->string);
        
$to   preg_split('(\r\n|\r|\n)'$other);

        foreach (
$from as $index => $line) {
            if (isset(
$to[$index]) && $line !== $to[$index]) {
                
$line $this->createPatternFromFormat($line);

                if (
preg_match($line$to[$index]) > 0) {
                    
$from[$index] = $to[$index];
                }
            }
        }

        
$this->string implode("\n"$from);
        
$other        implode("\n"$to);

        
$differ = new Differ("--- Expected\n+++ Actual\n");

        return 
$differ->diff($this->string$other);
    }

    protected function 
createPatternFromFormat($string)
    {
        
$string str_replace(
            array(
            
'%e',
            
'%s',
            
'%S',
            
'%a',
            
'%A',
            
'%w',
            
'%i',
            
'%d',
            
'%x',
            
'%f',
            
'%c'
            
),
            array(
            
'\\' DIRECTORY_SEPARATOR,
            
'[^\r\n]+',
            
'[^\r\n]*',
            
'.+',
            
'.*',
            
'\s*',
            
'[+-]?\d+',
            
'\d+',
            
'[0-9a-fA-F]+',
            
'[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?',
            
'.'
            
),
            
preg_quote($string'/')
        );

        return 
'/^' $string '$/s';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0106 ]--