// namespace Combodo\iTop\Test\UnitTest; /** * Created by PhpStorm. * User: Eric * Date: 20/11/2017 * Time: 11:21 */ use PHPUnit\Framework\TestCase; define('DEBUG_UNIT_TEST', true); class ItopTestCase extends TestCase { protected function setUp() { @include_once '../approot.inc.php'; @include_once '../../approot.inc.php'; @include_once '../../../approot.inc.php'; @include_once '../../../../approot.inc.php'; $this->debug("\n----------\n---------- ".$this->getName()."\n----------\n"); } protected function debug($sMsg) { if (DEBUG_UNIT_TEST) { if (is_string($sMsg)) { echo "$sMsg\n"; } else { print_r($sMsg); } } } }