Commit f7a7809d authored by Fabien Potencier's avatar Fabien Potencier

minor #1419 fixed deprecation handler in tests (fabpot)

This PR was merged into the 1.3 branch.

Discussion
----------

fixed deprecation handler in tests

Commits
-------

7b9fdf1d fixed deprecation handler in tests
parents b26ffa6e 7b9fdf1d
...@@ -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