Explorar o código

Check only part of the error message as it's different in hhvm

Nils Adermann %!s(int64=11) %!d(string=hai) anos
pai
achega
42dd2f2ee8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/Composer/Test/Util/ErrorHandlerTest.php

+ 1 - 1
tests/Composer/Test/Util/ErrorHandlerTest.php

@@ -38,7 +38,7 @@ class ErrorHandlerTest extends TestCase
      */
     public function testErrorHandlerCaptureWarning()
     {
-        $this->setExpectedException('\ErrorException', 'array_merge(): Argument #2 is not an array');
+        $this->setExpectedException('\ErrorException', 'array_merge');
 
         ErrorHandler::register();