[Tests] Coverage and extension checking

This commit is contained in:
Chris Boden 2012-06-01 23:41:51 -04:00
parent e42abf912f
commit 070a4f1c34
3 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@ use Ratchet\Tests\Mock\Connection;
/** /**
* @covers Ratchet\AbstractConnectionDecorator * @covers Ratchet\AbstractConnectionDecorator
* @covers Ratchet\ConnectionInterface
*/ */
class AbstractConnectionDecoratorTest extends \PHPUnit_Framework_TestCase { class AbstractConnectionDecoratorTest extends \PHPUnit_Framework_TestCase {
protected $mock; protected $mock;

View File

@ -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 * 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() { public function testConnectionValueFromPdo() {
if (!extension_loaded('PDO')) {
return $this->markTestSkipped();
}
$sessionId = md5('testSession'); $sessionId = md5('testSession');
$dbOptions = array( $dbOptions = array(

View File

@ -5,6 +5,8 @@ use Ratchet\Tests\Mock\Component as MockComponent;
/** /**
* @covers Ratchet\WebSocket\WsServer * @covers Ratchet\WebSocket\WsServer
* @covers Ratchet\ComponentInterface
* @covers Ratchet\MessageComponentInterface
*/ */
class WsServerTest extends \PHPUnit_Framework_TestCase { class WsServerTest extends \PHPUnit_Framework_TestCase {
protected $comp; protected $comp;