Updated the function hotpotatoes init

skala
Arthur Portugal 16 years ago
parent fe60084336
commit 6be4455dfe
  1. 14
      tests/main/exercice/hotpotatoes.lib.test.php

@ -107,9 +107,19 @@ class TestHotpotatoes extends UnitTestCase {
}
function testhotpotatoes_init() {
$baseWorkDir='/main/exercice';
$base = api_get_path(SYS_CODE_PATH);
$baseWorkDir=$base.'exercice/';
$res=hotpotatoes_init($baseWorkDir);
$this->assertTrue(is_bool($res));
$this->assertFalse($res);
//var_dump($res);
}
function testhotpotatoes_initWithRemoveFolder() {
$base = '/tmp/';
$baseWorkDir=$base.'test123/';
$res=hotpotatoes_init($baseWorkDir);
$this->assertTrue($res);
rmdir($baseWorkDir);
//var_dump($res);
}

Loading…
Cancel
Save