Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
minor #1419 fixed deprecation handler in tests (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.3 branch.

Discussion
----------

fixed deprecation handler in tests

Commits
-------

7b9fdf1 fixed deprecation handler in tests
  • Loading branch information
fabpot committed Sep 10, 2016
2 parents b26ffa6 + 7b9fdf1 commit f7a7809
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Silex/Tests/Provider/MonologServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@
*/
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()
{
$app = $this->getApplication();
Expand Down

0 comments on commit f7a7809

Please sign in to comment.