Fixed problems with the function teardown() CT#191

skala
Arthur Portugal 16 years ago
parent 2ead3df5dc
commit e758a477ae
  1. 10
      tests/main/forum/forumfunction.inc.test.php

@ -2,6 +2,11 @@
class TestForumFunction extends UnitTestCase {
public function __construct() {
// The constructor acts like a global setUp for the class
require_once api_get_path(SYS_TEST_PATH).'setup.inc.php';
}
/**
* This function add a attachment file into forum
* @param string a comment about file
@ -1321,5 +1326,10 @@ class TestForumFunction extends UnitTestCase {
$this->assertTrue(is_string($res));
//var_dump($res);
}
public function __destruct() {
// The destructor acts like a global tearDown for the class
require_once api_get_path(SYS_TEST_PATH).'teardown.inc.php';
}
}
?>

Loading…
Cancel
Save