Commit 7b9fdf1d authored by Fabien Potencier's avatar Fabien Potencier

fixed deprecation handler in tests

parent e6dd62a3
...@@ -25,6 +25,19 @@ use Symfony\Component\HttpFoundation\Request; ...@@ -25,6 +25,19 @@ use Symfony\Component\HttpFoundation\Request;
*/ */
class MonologServiceProviderTest extends \PHPUnit_Framework_TestCase class MonologServiceProviderTest extends \PHPUnit_Framework_TestCase
{ {
private $currErrorHandler;
protected function setUp()
{
$this->currErrorHandler = set_error_handler('var_dump');
restore_error_handler();
}
protected function tearDown()
{
set_error_handler($this->currErrorHandler);
}
public function testRequestLogging() public function testRequestLogging()
{ {
$app = $this->getApplication(); $app = $this->getApplication();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment