Browse Source

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

Muhammad Adeel Nawaz 11 years ago
parent
commit
97ad9799d8
1 changed files with 1 additions and 1 deletions
  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()