mxmbsocket/tests/Ratchet/Tests/Protocol/WebSocketTest.php
Chris Boden 47b7110dc1 Namespaces
Fixed all the namespaces to match new folder structure
2011-11-12 20:51:54 -05:00

25 lines
705 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 testServerImplementsServerInterface() {
$constraint = $this->isInstanceOf('\\Ratchet\\ObserverInterface');
$this->assertThat($this->_ws, $constraint);
}
public function testGetConfigReturnsArray() {
$this->assertInternalType('array', $this->_ws->getDefaultConfig());
}
}