mxmbsocket/tests/helpers/Ratchet/Mock/Connection.php
2013-06-16 10:12:48 -04:00

20 lines
400 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;
}
}