someWarning = new mb_warning("unit test"); } public function tearDown () { unset($this->someWarning); } /** * Notice was created */ public function testWarningCreated() { //TODO: check if logfile is really created $this->assertNotNull($this->someWarning); } /** * Notice was Successful */ public function testWarningSuccessful() { $this->assertEquals("Successful.", $this->someWarning->message); } } ?>