!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/Util/TestDox/   drwxr-xr-x
Free 116.83 GB of 200.55 GB (58.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     NamePrettifier.php (3.05 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.
 */

/**
 * Prettifies class and method names for use in TestDox documentation.
 *
 * @since Class available since Release 2.1.0
 */
class PHPUnit_Util_TestDox_NamePrettifier
{
    
/**
     * @var string
     */
    
protected $prefix 'Test';

    
/**
     * @var string
     */
    
protected $suffix 'Test';

    
/**
     * @var array
     */
    
protected $strings = array();

    
/**
     * Prettifies the name of a test class.
     *
     * @param string $name
     *
     * @return string
     */
    
public function prettifyTestClass($name)
    {
        
$title $name;

        if (
$this->suffix !== null &&
            
$this->suffix == substr($name, -strlen($this->suffix))) {
            
$title substr($title0strripos($title$this->suffix));
        }

        if (
$this->prefix !== null &&
            
$this->prefix == substr($name0strlen($this->prefix))) {
            
$title substr($titlestrlen($this->prefix));
        }

        if (
substr($title01) == '\\') {
            
$title substr($title1);
        }

        return 
$title;
    }

    
/**
     * Prettifies the name of a test method.
     *
     * @param string $name
     *
     * @return string
     */
    
public function prettifyTestMethod($name)
    {
        
$buffer '';

        if (!
is_string($name) || strlen($name) == 0) {
            return 
$buffer;
        }

        
$string preg_replace('#\d+$#'''$name, -1$count);

        if (
in_array($string$this->strings)) {
            
$name $string;
        } elseif (
$count == 0) {
            
$this->strings[] = $string;
        }

        if (
substr($name04) == 'test') {
            
$name substr($name4);
        }

        
$name[0] = strtoupper($name[0]);

        if (
strpos($name'_') !== false) {
            return 
trim(str_replace('_'' '$name));
        }

        
$max        strlen($name);
        
$wasNumeric false;

        for (
$i 0$i $max$i++) {
            if (
$i &&
                
ord($name[$i]) >= 65 &&
                
ord($name[$i]) <= 90) {
                
$buffer .= ' ' strtolower($name[$i]);
            } else {
                
$isNumeric is_numeric($name[$i]);

                if (!
$wasNumeric && $isNumeric) {
                    
$buffer    .= ' ';
                    
$wasNumeric true;
                }

                if (
$wasNumeric && !$isNumeric) {
                    
$wasNumeric false;
                }

                
$buffer .= $name[$i];
            }
        }

        return 
$buffer;
    }

    
/**
     * Sets the prefix of test names.
     *
     * @param string $prefix
     */
    
public function setPrefix($prefix)
    {
        
$this->prefix $prefix;
    }

    
/**
     * Sets the suffix of test names.
     *
     * @param string $suffix
     */
    
public function setSuffix($suffix)
    {
        
$this->suffix $suffix;
    }
}

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