Jordi Boggiano 13 years ago
parent
commit
96c9bf80cc
1 changed files with 10 additions and 0 deletions
  1. 10 0
      tests/Composer/Test/Util/ErrorHandlerTest.php

+ 10 - 0
tests/Composer/Test/Util/ErrorHandlerTest.php

@@ -46,4 +46,14 @@ class ErrorHandlerTest extends TestCase
 
         array_merge(array(), 'string');
     }
+
+    /**
+     * Test ErrorHandler handles warnings
+     */
+    public function testErrorHandlerRespectsAtOperator()
+    {
+        ErrorHandler::register();
+
+        @trigger_error('test', E_USER_NOTICE);
+    }
 }