Jordi Boggiano 13 年之前
父節點
當前提交
96c9bf80cc
共有 1 個文件被更改,包括 10 次插入0 次删除
  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);
+    }
 }