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 : 216.73.216.148
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
cboden /
ratchet /
tests /
unit /
Http /
Delete
Unzip
Name
Size
Permission
Date
Action
HttpRequestParserTest.php
1.6
KB
-rw-r--r--
2017-12-12 09:00
HttpServerTest.php
2.08
KB
-rw-r--r--
2017-12-12 09:00
OriginCheckTest.php
1.24
KB
-rw-r--r--
2017-12-12 09:00
RouterTest.php
7.08
KB
-rw-r--r--
2017-12-12 09:00
Save
Rename
<?php namespace Ratchet\Http; /** * @covers Ratchet\Http\HttpRequestParser */ class HttpRequestParserTest extends \PHPUnit_Framework_TestCase { protected $parser; public function setUp() { $this->parser = new HttpRequestParser; } public function headersProvider() { return array( array(false, "GET / HTTP/1.1\r\nHost: socketo.me\r\n") , array(true, "GET / HTTP/1.1\r\nHost: socketo.me\r\n\r\n") , array(true, "GET / HTTP/1.1\r\nHost: socketo.me\r\n\r\n1") , array(true, "GET / HTTP/1.1\r\nHost: socketo.me\r\n\r\nHixie✖") , array(true, "GET / HTTP/1.1\r\nHost: socketo.me\r\n\r\nHixie✖\r\n\r\n") , array(true, "GET / HTTP/1.1\r\nHost: socketo.me\r\n\r\nHixie\r\n") ); } /** * @dataProvider headersProvider */ public function testIsEom($expected, $message) { $this->assertEquals($expected, $this->parser->isEom($message)); } public function testBufferOverflowResponse() { $conn = $this->getMock('\Ratchet\ConnectionInterface'); $this->parser->maxSize = 20; $this->assertNull($this->parser->onMessage($conn, "GET / HTTP/1.1\r\n")); $this->setExpectedException('OverflowException'); $this->parser->onMessage($conn, "Header-Is: Too Big"); } public function testReturnTypeIsRequest() { $conn = $this->getMock('\Ratchet\ConnectionInterface'); $return = $this->parser->onMessage($conn, "GET / HTTP/1.1\r\nHost: socketo.me\r\n\r\n"); $this->assertInstanceOf('\Psr\Http\Message\RequestInterface', $return); } }