From 4c1073883a3465c438f7e5b225cb203972122685 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Sun, 28 Apr 2013 15:58:22 -0400 Subject: [PATCH] [Tests] Skip serializer if not available (TravisCI) --- tests/Ratchet/Tests/Session/SessionComponentTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Ratchet/Tests/Session/SessionComponentTest.php b/tests/Ratchet/Tests/Session/SessionComponentTest.php index 290e7dd..b97d273 100644 --- a/tests/Ratchet/Tests/Session/SessionComponentTest.php +++ b/tests/Ratchet/Tests/Session/SessionComponentTest.php @@ -126,6 +126,10 @@ class SessionProviderTest extends AbstractMessageComponentTestCase { } public function testRejectInvalidSeralizers() { + if (!function_exists('wddx_serialize_value')) { + $this->markTestSkipped(); + } + ini_set('session.serialize_handler', 'wddx'); $this->setExpectedException('\RuntimeException'); new SessionProvider($this->getMock('\Ratchet\MessageComponentInterface'), $this->getMock('\SessionHandlerInterface'));