diff --git a/modules/simpletest/tests/error.test b/modules/simpletest/tests/error.test
index f946e82..44a0044 100644
--- a/modules/simpletest/tests/error.test
+++ b/modules/simpletest/tests/error.test
@@ -17,6 +17,16 @@ class DrupalErrorHandlerTestCase extends DrupalWebTestCase {
   }
 
   /**
+   * Test the error handler for PHP >5.3.0.
+   */
+  function testErrorHandlerPHP530() {
+    define('SIMPLETEST_COLLECT_ERRORS', FALSE);
+    if (defined('E_USER_DEPRECATED')) {
+      trigger_error("Message", E_USER_DEPRECATED);
+    }
+  }
+
+  /**
    * Test the error handler.
    */
   function testErrorHandler() {
