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);
+    }
 }