Permalink
Browse files

Ignore E_NOTICE too

Apparently, this throws a notice, not a deprecated error. Who knew.
  • Loading branch information...
1 parent c326e76 commit 7ded6fa975588263840548d870213a4007e11033 @rmccue rmccue committed Oct 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/CacheTest.php
View
@@ -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 7ded6fa

Please sign in to comment.