Skip to content
Browse files

Ignore E_NOTICE too

Apparently, this throws a notice, not a deprecated error. Who knew.
  • Loading branch information...
1 parent c2915d2 commit aafb99d99ce30c04e83d2d58abfb453105414de3 @rmccue rmccue committed Oct 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/CacheTest.php
View
4 tests/CacheTest.php
@@ -97,8 +97,8 @@ public function testDirectOverrideLegacy()
$feed->get_registry()->register('File', 'Mock_File');
$feed->set_feed_url('http://example.com/feed/');
- // Ignore E_DEPRECATED
- $old = error_reporting(E_ALL & ~E_DEPRECATED);
+ // Ignore E_DEPRECATED and E_NOTICE
+ $old = error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
$feed->init();
error_reporting($old);
}

0 comments on commit aafb99d

Please sign in to comment.
Something went wrong with that request. Please try again.