mxmbsocket/tests/Ratchet/Tests/Protocol/WebSocketTest.php
Chris Boden c6a91692f7 Interface Cleanup
Separated Observable interface from Decorator interface, also separated config method to its own interface
Cleaned up unit tests to reflect interface changes
2011-11-13 13:37:42 -05:00

20 lines
511 B
PHP

<?php
namespace Ratchet\Tests\Protocol;
use Ratchet\Application\WebSocket\App as WebSocket;
use Ratchet\Tests\Mock\Socket;
use Ratchet\Tests\Mock\Application;
/**
* @covers Ratchet\Application\WebSocket
*/
class WebSocketTest extends \PHPUnit_Framework_TestCase {
protected $_ws;
public function setUp() {
$this->_ws = new WebSocket(new Application);
}
public function testGetConfigReturnsArray() {
$this->assertInternalType('array', $this->_ws->getDefaultConfig());
}
}