Explorar o código

Constant `__DIR__` replaced with `dirname(__FILE__)` as `__DIR__` is not supported in PHP versions older than 5.3

Muhammad Adeel Nawaz %!s(int64=11) %!d(string=hai) anos
pai
achega
97ad9799d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/Zend/PdfTest.php

+ 1 - 1
tests/Zend/PdfTest.php

@@ -47,7 +47,7 @@ class Zend_PdfTest extends PHPUnit_Framework_TestCase
 
     protected function setUp()
     {
-        $this->_pdf = Zend_Pdf::load(__DIR__ . '/Pdf/_files/PdfWithFields.pdf');
+        $this->_pdf = Zend_Pdf::load(dirname(__FILE__) . '/Pdf/_files/PdfWithFields.pdf');
     }
 
     public function testGetTextFieldNames()