Skip to content

Commit 486144a

Browse files
committed
Upgrading phpunit version and fixing broken test in earlier php versions
1 parent dafb418 commit 486144a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"jakoch/phantomjs-installer": "2.1.1"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "~4.0",
25+
"phpunit/phpunit": "~5.0",
2626
"zendframework/zendpdf": "~2.0",
2727
"smalot/pdfparser": "~0.9"
2828
},

src/JonnyW/PhantomJs/Tests/Integration/ClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ public function testCanSetRepeatingHeaderForPDFRequest()
511511

512512
$client->send($request, $response);
513513

514-
$pdf = (new \Smalot\PdfParser\Parser())
515-
->parseFile($file);
514+
$parser = new \Smalot\PdfParser\Parser();
515+
$pdf = $parser->parseFile($file);
516516

517517
$text = str_replace(' ', '', $pdf->getText());
518518

@@ -547,8 +547,8 @@ public function testCanSetRepeatingFooterForPDFRequest()
547547

548548
$client->send($request, $response);
549549

550-
$pdf = (new \Smalot\PdfParser\Parser())
551-
->parseFile($file);
550+
$parser = new \Smalot\PdfParser\Parser();
551+
$pdf = $parser->parseFile($file);
552552

553553
$text = str_replace(' ', '', $pdf->getText());
554554

0 commit comments

Comments
 (0)