Commit df8e33d50a404140a946d3de73c28a2ba15b6130

Authored by Paul Barrett
1 parent eee7525a

Check for null or PEAR error when logging out of CMIS tests

Committed by: PAul Barrett
Showing 1 changed file with 3 additions and 1 deletions
tests/ktcmis/testCmisApi.php
@@ -62,7 +62,9 @@ class CMISTestCase extends KTUnitTestCase { @@ -62,7 +62,9 @@ class CMISTestCase extends KTUnitTestCase {
62 * This method ends the KT session 62 * This method ends the KT session
63 */ 63 */
64 public function tearDown() { 64 public function tearDown() {
65 - $this->session->logout(); 65 + if (!is_null($this->session) && !PEAR::isError($this->session)) {
  66 + $this->session->logout();
  67 + }
66 } 68 }
67 69
68 // Repository service functions 70 // Repository service functions