UnitTestCase('XOrgErrors Test'); } function testCreatingXOrgErrors() { $errors = new XOrgErrors(); $this->assertIdentical($errors->errs, Array()); $this->assertIdentical($errors->failure, false); } function testTrig() { $errors = new XOrgErrors(); $errors->trig("Foo error"); $this->assertIdentical($errors->errs, Array("Foo error")); $this->assertIdentical($errors->failure, false); } function testFail() { $errors = new XOrgErrors(); $errors->fail("Foo error"); $this->assertIdentical($errors->errs, Array("Foo error")); $this->assertIdentical($errors->failure, true); } } $test = &new TestOfXOrgErrors(); $test->run($reporter); ?>