Add error reporting setting

This commit is contained in:
Romain Neutron
2014-03-03 14:11:55 +01:00
parent 48dc4ce1d5
commit 46141b3cc6
3 changed files with 5 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ abstract class PhraseanetTestCase extends WebTestCase
ini_set('memory_limit', '4096M'); ini_set('memory_limit', '4096M');
error_reporting(-1);
\PHPUnit_Framework_Error_Warning::$enabled = true; \PHPUnit_Framework_Error_Warning::$enabled = true;
\PHPUnit_Framework_Error_Notice::$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'; require_once __DIR__ . '/../lib/autoload.php';
error_reporting(0);
ErrorHandler::register(); ErrorHandler::register();
$environment = Application::ENV_PROD; $environment = Application::ENV_PROD;

View File

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