smarty = SmartyTests::$smarty; SmartyTests::init(); } public static function isRunnable() { // needs modification return false; } /** * test error message */ public function testTriggerError() { try { $this->smarty->triggerError('Test error'); } catch (Exception $e) { $this->assertContains('Test error', $e->getMessage()); return; } $this->fail('Exception for custom error message of trigger_error missing'); } } ?>