Add error reporting setting

Conflicts:
	tests/classes/PhraseanetTestCase.php
This commit is contained in:
Romain Neutron
2014-03-03 14:11:55 +01:00
parent b8d2702975
commit 8d2009cfef
4 changed files with 7 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
connection::close_connections();
error_reporting(-1);
\PHPUnit_Framework_Error_Warning::$enabled = true;
\PHPUnit_Framework_Error_Notice::$enabled = true;

View File

@@ -14,6 +14,8 @@ use Symfony\Component\Debug\ErrorHandler;
require_once __DIR__ . '/../lib/autoload.php';
error_reporting(0);
ErrorHandler::register();
$environment = Application::ENV_PROD;

View File

@@ -14,6 +14,8 @@ use Symfony\Component\Debug\ErrorHandler;
require_once __DIR__ . "/../lib/autoload.php";
error_reporting(0);
ErrorHandler::register();
$environment = Application::ENV_PROD;

View File

@@ -14,6 +14,8 @@ use Symfony\Component\Debug\ErrorHandler;
require_once __DIR__ . "/../lib/autoload.php";
error_reporting(-1);
ErrorHandler::register();
$environment = Application::ENV_DEV;