public function testToHtml() { $e = new PEAR_Exception('oops'); $html = $e->toHtml(); $this->assertInternalType('string', $html); $this->assertContains('oops', $html); }