From 93acf10420e2482a0b8f9cd7f9092978d23896a2 Mon Sep 17 00:00:00 2001
From: robocoder <anthon.pang@gmail.com>
Date: Tue, 6 Jul 2010 21:41:11 +0000
Subject: [PATCH] reverse logic to reflect changes in autoloader

git-svn-id: http://dev.piwik.org/svn/trunk@2440 59fd770c-687e-43c8-a1e3-f5a4ff64c105
---
 tests/core/Common.test.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/core/Common.test.php b/tests/core/Common.test.php
index f1526910e0..82f3a2e52b 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);
-- 
GitLab