// /** * Created by PhpStorm. * User: Eric * Date: 30/10/2017 * Time: 13:43 */ namespace Combodo\iTop\Test\UnitTest\Core; use Combodo\iTop\Test\UnitTest\ItopTestCase; use Dict; use Exception; /** * @runTestsInSeparateProcesses * @preserveGlobalState disabled * @backupGlobals disabled */ class dictTest extends ItopTestCase { protected function setUp() { parent::setUp(); require_once (APPROOT.'core/coreexception.class.inc.php'); require_once (APPROOT.'core/dict.class.inc.php'); require_once 'mockDict.incphp'; } /** * @throws Exception */ public function testType() { $this->assertInternalType('string', Dict::S('Core:AttributeURL')); $this->assertInternalType('string', Dict::Format('Change:AttName_SetTo', '1', '2')); } }