[Tests] Skip serializer if not available (TravisCI)

This commit is contained in:
Chris Boden 2013-04-28 15:58:22 -04:00
parent 344818d0f5
commit 4c1073883a

View File

@ -126,6 +126,10 @@ class SessionProviderTest extends AbstractMessageComponentTestCase {
} }
public function testRejectInvalidSeralizers() { public function testRejectInvalidSeralizers() {
if (!function_exists('wddx_serialize_value')) {
$this->markTestSkipped();
}
ini_set('session.serialize_handler', 'wddx'); ini_set('session.serialize_handler', 'wddx');
$this->setExpectedException('\RuntimeException'); $this->setExpectedException('\RuntimeException');
new SessionProvider($this->getMock('\Ratchet\MessageComponentInterface'), $this->getMock('\SessionHandlerInterface')); new SessionProvider($this->getMock('\Ratchet\MessageComponentInterface'), $this->getMock('\SessionHandlerInterface'));