3 class XHTMLCompiler_FileTest
extends XHTMLCompiler_FileSystemHarness
8 $file = new XHTMLCompiler_File($name);
9 $this->assertFalse($file->exists());
10 $file->write('foobar');
11 $this->assertTrue($file->exists());
12 $this->assertEqual($file->get(), 'foobar');
14 $this->assertFalse($file->exists());
17 function testGetNonExistent() {
18 $name = 'notfound.txt';
19 $file = new XHTMLCompiler_File($name);
21 $this->assertFalse($file->get());