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


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

use 
GuzzleHttp\Stream\BufferStream;

class 
BufferStreamTest extends \PHPUnit_Framework_TestCase
{
    public function 
testHasMetadata()
    {
        
$b = new BufferStream(10);
        
$this->assertTrue($b->isReadable());
        
$this->assertTrue($b->isWritable());
        
$this->assertFalse($b->isSeekable());
        
$this->assertEquals(null$b->getMetadata('foo'));
        
$this->assertEquals(10$b->getMetadata('hwm'));
        
$this->assertEquals([], $b->getMetadata());
    }

    public function 
testRemovesReadDataFromBuffer()
    {
        
$b = new BufferStream();
        
$this->assertEquals(3$b->write('foo'));
        
$this->assertEquals(3$b->getSize());
        
$this->assertFalse($b->eof());
        
$this->assertEquals('foo'$b->read(10));
        
$this->assertTrue($b->eof());
        
$this->assertEquals(''$b->read(10));
    }

    public function 
testCanCastToStringOrGetContents()
    {
        
$b = new BufferStream();
        
$b->write('foo');
        
$b->write('baz');
        
$this->assertEquals('foo'$b->read(3));
        
$b->write('bar');
        
$this->assertEquals('bazbar', (string) $b);
        
$this->assertFalse($b->tell());
    }

    public function 
testDetachClearsBuffer()
    {
        
$b = new BufferStream();
        
$b->write('foo');
        
$b->detach();
        
$this->assertEquals(0$b->tell());
        
$this->assertTrue($b->eof());
        
$this->assertEquals(3$b->write('abc'));
        
$this->assertEquals('abc'$b->read(10));
    }

    public function 
testExceedingHighwaterMarkReturnsFalseButStillBuffers()
    {
        
$b = new BufferStream(5);
        
$this->assertEquals(3$b->write('hi '));
        
$this->assertFalse($b->write('hello'));
        
$this->assertEquals('hi hello', (string) $b);
        
$this->assertEquals(4$b->write('test'));
    }

    
/**
     * @expectedException \GuzzleHttp\Stream\Exception\CannotAttachException
     */
    
public function testCannotAttach()
    {
        
$p = new BufferStream();
        
$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.5637 ]--