diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php
index 76b8109582ae17560b77a6e0499b232e09047810..599cbc6f8aabd9b9c52c53a2764f1cf941b6c0bd 100644
--- a/tests/unit/bootstrap.php
+++ b/tests/unit/bootstrap.php
@@ -3,6 +3,8 @@
  * PHPUnit bootstrap file
  */
 
+error_reporting( E_ALL ^ E_DEPRECATED );
+
 require_once __DIR__ . '/../../vendor/autoload.php';
 
 WP_Mock::setUsePatchwork( true );