Jordi Boggiano 13 gadi atpakaļ
vecāks
revīzija
96c9bf80cc
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  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);
+    }
 }