
Cleaned up a lot of the code Added API documentation Fixed some unit tests Much cleaning left to be done
24 lines
520 B
PHP
24 lines
520 B
PHP
<?php
|
|
namespace Ratchet\Tests\Mock;
|
|
use Ratchet\ReceiverInterface;
|
|
use Ratchet\Server;
|
|
use Ratchet\Tests\Mock\Socket as MockSocket;
|
|
use Ratchet\SocketInterface;
|
|
|
|
class Application implements ReceiverInterface {
|
|
public function getName() {
|
|
return 'mock_application';
|
|
}
|
|
|
|
public function setUp(Server $server) {
|
|
}
|
|
|
|
public function onOpen(SocketInterface $conn) {
|
|
}
|
|
|
|
public function onRecv(SocketInterface $from, $msg) {
|
|
}
|
|
|
|
public function onClose(SocketInterface $conn) {
|
|
}
|
|
} |