@codeCoverageIgnoreStart for private __clone()

This commit is contained in:
Anton Terekhov
2012-11-21 21:02:13 +04:00
parent c65ce706a9
commit 766cce1fbc
5 changed files with 41 additions and 5 deletions

View File

@ -29,12 +29,17 @@ class CliController
/**
* Refuse cloning
* @codeCoverageIgnoreStart
*/
private function __clone()
{
}
/**
* @codeCoverageIgnoreEnd
*/
/**
* @static
* @return CliController
*/

View File

@ -35,12 +35,17 @@ class FrontController
/**
* Refuse cloning
* @codeCoverageIgnoreStart
*/
private function __clone()
{
}
/**
* @codeCoverageIgnoreEnd
*/
/**
* @return FrontController
*/
static public function getInstance()
@ -128,7 +133,8 @@ class FrontController
}
}
return $html;
} catch (Exception $e) {
}
catch (Exception $e) {
if (Config::get('DEBUG')) {
if (!headers_sent()) {
if ($e instanceof ErrorHTTPException) {