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 /
Wamp /
Delete
Unzip
Name
Size
Permission
Date
Action
ServerProtocolTest.php
8.67
KB
-rw-r--r--
2017-12-12 09:00
TopicManagerTest.php
7.09
KB
-rw-r--r--
2017-12-12 09:00
TopicTest.php
5
KB
-rw-r--r--
2017-12-12 09:00
WampConnectionTest.php
2.26
KB
-rw-r--r--
2017-12-12 09:00
WampServerTest.php
1.52
KB
-rw-r--r--
2017-12-12 09:00
Save
Rename
<?php namespace Ratchet\Wamp; use Ratchet\AbstractMessageComponentTestCase; /** * @covers Ratchet\Wamp\WampServer */ class WampServerTest extends AbstractMessageComponentTestCase { public function getConnectionClassString() { return '\Ratchet\Wamp\WampConnection'; } public function getDecoratorClassString() { return 'Ratchet\Wamp\WampServer'; } public function getComponentClassString() { return '\Ratchet\Wamp\WampServerInterface'; } public function testOnMessageToEvent() { $published = 'Client published this message'; $this->_app->expects($this->once())->method('onPublish')->with( $this->isExpectedConnection() , new \PHPUnit_Framework_Constraint_IsInstanceOf('\Ratchet\Wamp\Topic') , $published , array() , array() ); $this->_serv->onMessage($this->_conn, json_encode(array(7, 'topic', $published))); } public function testGetSubProtocols() { // todo: could expand on this $this->assertInternalType('array', $this->_serv->getSubProtocols()); } public function testConnectionClosesOnInvalidJson() { $this->_conn->expects($this->once())->method('close'); $this->_serv->onMessage($this->_conn, 'invalid json'); } public function testConnectionClosesOnProtocolError() { $this->_conn->expects($this->once())->method('close'); $this->_serv->onMessage($this->_conn, json_encode(array('valid' => 'json', 'invalid' => 'protocol'))); } }