Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.135.201.190
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
ringcentral /
psr7 /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
AppendStreamTest.php
5.7
KB
-rw-r--r--
2018-01-15 21:00
BufferStreamTest.php
1.9
KB
-rw-r--r--
2018-01-15 21:00
CachingStreamTest.php
5.54
KB
-rw-r--r--
2018-01-15 21:00
DroppingStreamTest.php
919
B
-rw-r--r--
2018-01-15 21:00
FnStreamTest.php
2.55
KB
-rw-r--r--
2018-01-15 21:00
FunctionsTest.php
20.76
KB
-rw-r--r--
2018-01-15 21:00
InflateStreamTest.php
446
B
-rw-r--r--
2018-01-15 21:00
LazyOpenStreamTest.php
1.8
KB
-rw-r--r--
2018-01-15 21:00
LimitStreamTest.php
4.87
KB
-rw-r--r--
2018-01-15 21:00
MultipartStreamTest.php
5.24
KB
-rw-r--r--
2018-01-15 21:00
NoSeekStreamTest.php
1.12
KB
-rw-r--r--
2018-01-15 21:00
PumpStreamTest.php
2.17
KB
-rw-r--r--
2018-01-15 21:00
RequestTest.php
4.71
KB
-rw-r--r--
2018-01-15 21:00
ResponseTest.php
4.73
KB
-rw-r--r--
2018-01-15 21:00
ServerRequestTest.php
2.55
KB
-rw-r--r--
2018-01-15 21:00
StreamDecoratorTraitTest.php
3.22
KB
-rw-r--r--
2018-01-15 21:00
StreamTest.php
5.03
KB
-rw-r--r--
2018-01-15 21:00
StreamWrapperTest.php
3.12
KB
-rw-r--r--
2018-01-15 21:00
UriTest.php
10.18
KB
-rw-r--r--
2018-01-15 21:00
bootstrap.php
197
B
-rw-r--r--
2018-01-15 21:00
Save
Rename
<?php namespace RingCentral\Tests\Psr7; use RingCentral\Psr7\StreamWrapper; use RingCentral\Psr7; /** * @covers RingCentral\Psr7\StreamWrapper */ class StreamWrapperTest extends \PHPUnit_Framework_TestCase { public function testResource() { $stream = Psr7\stream_for('foo'); $handle = StreamWrapper::getResource($stream); $this->assertSame('foo', fread($handle, 3)); $this->assertSame(3, ftell($handle)); $this->assertSame(3, fwrite($handle, 'bar')); $this->assertSame(0, fseek($handle, 0)); $this->assertSame('foobar', fread($handle, 6)); $this->assertSame('', fread($handle, 1)); $this->assertTrue(feof($handle)); // This fails on HHVM for some reason if (!defined('HHVM_VERSION')) { $this->assertEquals(array( '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('Psr\Http\Message\StreamInterface') ->setMethods(array('isReadable', 'isWritable')) ->getMockForAbstractClass(); $stream->expects($this->once()) ->method('isReadable') ->will($this->returnValue(false)); $stream->expects($this->once()) ->method('isWritable') ->will($this->returnValue(false)); StreamWrapper::getResource($stream); } /** * @expectedException \PHPUnit_Framework_Error_Warning */ public function testReturnsFalseWhenStreamDoesNotExist() { fopen('guzzle://foo', 'r'); } public function testCanOpenReadonlyStream() { $stream = $this->getMockBuilder('Psr\Http\Message\StreamInterface') ->setMethods(array('isReadable', 'isWritable')) ->getMockForAbstractClass(); $stream->expects($this->once()) ->method('isReadable') ->will($this->returnValue(false)); $stream->expects($this->once()) ->method('isWritable') ->will($this->returnValue(true)); $r = StreamWrapper::getResource($stream); $this->assertInternalType('resource', $r); fclose($r); } }