mxmbsocket/tests/helpers/Ratchet/Mock/Connection.php
Grégoire Pineau 3a8578bd17 CS (eof_ending)
2014-03-21 16:46:43 +01:00

21 lines
401 B
PHP

<?php
namespace Ratchet\Mock;
use Ratchet\ConnectionInterface;
class Connection implements ConnectionInterface {
public $last = array(
'send' => ''
, 'close' => false
);
public $remoteAddress = '127.0.0.1';
public function send($data) {
$this->last[__FUNCTION__] = $data;
}
public function close() {
$this->last[__FUNCTION__] = true;
}
}