Correction is no longer required in php7

This commit is contained in:
Roeland Jago Douma 2016-07-08 09:27:54 +02:00
parent c91aebc437
commit 58dd278b4e
No known key found for this signature in database
GPG key ID: 1E152838F164D13B

View file

@ -783,7 +783,7 @@ class PreviewTest extends TestCase {
$filename = $this->samples[$sampleId]['sampleFileName'];
$splitFileName = pathinfo($filename);
$extension = $splitFileName['extension'];
$correction = ($extension === 'eps') ? 1 : 0;
$correction = ($extension === 'eps' && PHP_MAJOR_VERSION < 7) ? 1 : 0;
$maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight'];
$maxPreviewHeight = $maxPreviewHeight - $correction;