public function setUp() { parent::setUp(); TaoPhpUnitTestRunner::initTest(); $return = $this->rawCurl(ROOT_URL . 'tao/test/connector/setUp.php', array()); $data = json_decode($return, true); $this->assertNotNull($data); if (!defined('TAO_ROOT_URL')) { define('TAO_ROOT_URL', $data['rootUrl']); } $this->UserData = $data['userData']; $this->userUri = $data['userUri']; $this->langLookup = $data['lang']; $this->userService = new taoUserService(); $this->assertIsA($this->userService, 'taoUserService'); }
/** * @access public * @author "Lionel Lecaque, <*****@*****.**>" */ public function setUp() { TaoPhpUnitTestRunner::initTest(); $this->service = taoResults_models_classes_ResultsService::singleton(); }