[Tests] Coverage and extension checking
This commit is contained in:
parent
e42abf912f
commit
070a4f1c34
@ -5,6 +5,7 @@ use Ratchet\Tests\Mock\Connection;
|
||||
|
||||
/**
|
||||
* @covers Ratchet\AbstractConnectionDecorator
|
||||
* @covers Ratchet\ConnectionInterface
|
||||
*/
|
||||
class AbstractConnectionDecoratorTest extends \PHPUnit_Framework_TestCase {
|
||||
protected $mock;
|
||||
|
@ -43,6 +43,10 @@ class SessionProviderTest extends \PHPUnit_Framework_TestCase {
|
||||
* I think I have severly butchered this test...it's not so much of a unit test as it is a full-fledged component test
|
||||
*/
|
||||
public function testConnectionValueFromPdo() {
|
||||
if (!extension_loaded('PDO')) {
|
||||
return $this->markTestSkipped();
|
||||
}
|
||||
|
||||
$sessionId = md5('testSession');
|
||||
|
||||
$dbOptions = array(
|
||||
|
@ -5,6 +5,8 @@ use Ratchet\Tests\Mock\Component as MockComponent;
|
||||
|
||||
/**
|
||||
* @covers Ratchet\WebSocket\WsServer
|
||||
* @covers Ratchet\ComponentInterface
|
||||
* @covers Ratchet\MessageComponentInterface
|
||||
*/
|
||||
class WsServerTest extends \PHPUnit_Framework_TestCase {
|
||||
protected $comp;
|
||||
|
Loading…
Reference in New Issue
Block a user