<?php
// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
/*
 * Created on Jan 30, 2009
 *
 * Parent class of all test cases. For some reason PHPUnit doesn't deal
 * well with globals, so $backupGlobals should be set to false. 
 * Use this class to set other PHPUnit variables, as needed. 
 * 
 */
 
require_once (version_compare(PHPUnit_Runner_Version::id(), '3.5.0', '>=')) ? 'PHPUnit/Autoload.php' : 'PHPUnit/Framework.php';
 
abstract class TikiTestCase extends PHPUnit_Framework_TestCase
{
 	protected $backupGlobals = FALSE;	
}

<?php
// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
/*
 * Created on Jan 30, 2009
 *
 * Parent class of all test cases. For some reason PHPUnit doesn't deal
 * well with globals, so $backupGlobals should be set to false. 
 * Use this class to set other PHPUnit variables, as needed. 
 * 
 */
 
require_once('PHPUnit/Framework.php'); 
 
abstract class TikiTestCase extends PHPUnit_Framework_TestCase
{
 	protected $backupGlobals = FALSE;	
}

--- 
+++ 
@@ -13,7 +13,7 @@
  * 
  */
  
-require_once('PHPUnit/Framework.php'); 
+require_once (version_compare(PHPUnit_Runner_Version::id(), '3.5.0', '>=')) ? 'PHPUnit/Autoload.php' : 'PHPUnit/Framework.php';
  
 abstract class TikiTestCase extends PHPUnit_Framework_TestCase
 {
[FIX] Use the correct include based on the PHPUnit version.

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@36937 b456876b-0849-0410-b77d-98878d47e9d5
