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; use Ratchet\AbstractMessageComponentTestCase; /** * @covers Ratchet\Http\OriginCheck */ class OriginCheckTest extends AbstractMessageComponentTestCase { protected $_reqStub; public function setUp() { $this->_reqStub = $this->getMock('Psr\Http\Message\RequestInterface'); $this->_reqStub->expects($this->any())->method('getHeader')->will($this->returnValue(['localhost'])); parent::setUp(); $this->_serv->allowedOrigins[] = 'localhost'; } protected function doOpen($conn) { $this->_serv->onOpen($conn, $this->_reqStub); } public function getConnectionClassString() { return '\Ratchet\ConnectionInterface'; } public function getDecoratorClassString() { return '\Ratchet\Http\OriginCheck'; } public function getComponentClassString() { return '\Ratchet\Http\HttpServerInterface'; } public function testCloseOnNonMatchingOrigin() { $this->_serv->allowedOrigins = ['socketo.me']; $this->_conn->expects($this->once())->method('close'); $this->_serv->onOpen($this->_conn, $this->_reqStub); } public function testOnMessage() { $this->passthroughMessageTest('Hello World!'); } }