Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/mvc-query-notices' into develop
Browse files Browse the repository at this point in the history
Fix test "failures" in MVC
  • Loading branch information
weierophinney committed Mar 14, 2013
2 parents c7b34ab + 28cda60 commit 809d58f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
*/
error_reporting( E_ALL | E_STRICT );

/*
* When tests are run in separate processes, class files that trigger
* deprecation notices will be re-included, and re-trigger the notice.
* Since we know about these notices already and expect them, handle them up
* front.
*/
set_error_handler(function ($errno, $errstr) {
return stristr($errstr, 'query route deprecated');
}, E_USER_DEPRECATED);

if (class_exists('PHPUnit_Runner_Version', true)) {
$phpUnitVersion = PHPUnit_Runner_Version::id();
Expand Down

0 comments on commit 809d58f

Please sign in to comment.