diff --git a/tests/core/Common.test.php b/tests/core/Common.test.php index f1526910e0d5d3fca702888cabec2a95f2261a95..82f3a2e52b5480aaf847e3db590b4c1ab7b2b828 100644 --- a/tests/core/Common.test.php +++ b/tests/core/Common.test.php @@ -696,9 +696,9 @@ class Test_Piwik_Common extends UnitTestCase $a = 'O:31:"Test_Piwik_Cookie_Phantom_Class":0:{}'; try { unserialize($a); - $this->fail("Expected exception not raised"); - } catch(Exception $expected) { $this->pass("test: unserializing an object where class not (yet) defined<br>\n"); + } catch(Exception $expected) { + $this->fail("Unexpected exception raised"); } $ua = Piwik_Common::unserialize_array($a);