[Tests] Skip serializer if not available (TravisCI)
This commit is contained in:
parent
344818d0f5
commit
4c1073883a
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user