From df8e33d50a404140a946d3de73c28a2ba15b6130 Mon Sep 17 00:00:00 2001 From: Paul Barrett Date: Fri, 19 Feb 2010 11:12:57 +0200 Subject: [PATCH] Check for null or PEAR error when logging out of CMIS tests --- tests/ktcmis/testCmisApi.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ktcmis/testCmisApi.php b/tests/ktcmis/testCmisApi.php index 49d0481..a9a3c00 100644 --- a/tests/ktcmis/testCmisApi.php +++ b/tests/ktcmis/testCmisApi.php @@ -62,7 +62,9 @@ class CMISTestCase extends KTUnitTestCase { * This method ends the KT session */ public function tearDown() { - $this->session->logout(); + if (!is_null($this->session) && !PEAR::isError($this->session)) { + $this->session->logout(); + } } // Repository service functions -- libgit2 0.21.4