فهرست منبع

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

Muhammad Adeel Nawaz 11 سال پیش
والد
کامیت
97ad9799d8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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()