소스 검색

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()