4 * Test harness that sets up a filesystem sandbox for file-emulation
5 * functions to safely unit test in.
7 class XHTMLCompiler_FileSystemHarness
extends UnitTestCase
10 protected $dir, $oldDir;
12 public function __construct() {
13 parent
::__construct();
14 $this->dir
= 'tmp/' . md5(uniqid(rand(), true)) . '/';
16 $this->oldDir
= getcwd();
20 public function __destruct() {
21 // individual tests must be sure to destroy their own files!
25 public function setup() {
29 public function tearDown() {