UnitTestCase(); } function testCreatingNewFile() { @unlink('test.log'); $log = new Log('test.log'); $this->assertFalse(file_exists('../temp/test.log'), 'No file created before first message'); $log = new Log('test.log'); $log->message('Should write this to a file'); $this->assertTrue(file_exists('test.log')); } } $test = &new TestOfLogging(); $test->run(new TextReporter()); ?>