Quellcode durchsuchen

Upgrading phpunit version and fixing broken test in earlier php versions

Jonny Wenmoth vor 9 Jahren
Ursprung
Commit
486144ac38
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 1 1
      composer.json
  2. 4 4
      src/JonnyW/PhantomJs/Tests/Integration/ClientTest.php

+ 1 - 1
composer.json

@@ -22,7 +22,7 @@
         "jakoch/phantomjs-installer": "2.1.1"
     },
     "require-dev": {
-        "phpunit/phpunit": "~4.0",
+        "phpunit/phpunit": "~5.0",
         "zendframework/zendpdf": "~2.0",
         "smalot/pdfparser": "~0.9"
     },

+ 4 - 4
src/JonnyW/PhantomJs/Tests/Integration/ClientTest.php

@@ -511,8 +511,8 @@ EOF;
 
         $client->send($request, $response);
 
-        $pdf = (new \Smalot\PdfParser\Parser())
-            ->parseFile($file);
+        $parser = new \Smalot\PdfParser\Parser();
+        $pdf    = $parser->parseFile($file);
 
         $text = str_replace(' ', '', $pdf->getText());
 
@@ -547,8 +547,8 @@ EOF;
 
         $client->send($request, $response);
 
-        $pdf = (new \Smalot\PdfParser\Parser())
-            ->parseFile($file);
+        $parser = new \Smalot\PdfParser\Parser();
+        $pdf    = $parser->parseFile($file);
 
         $text = str_replace(' ', '', $pdf->getText());