فهرست منبع

fixing failed test on old php, constant too

maybe the constant is not available so just pass the integer
croensch 10 سال پیش
والد
کامیت
c0ce7ced0b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tests/Zend/Dom/QueryTest.php

+ 1 - 1
tests/Zend/Dom/QueryTest.php

@@ -240,7 +240,7 @@ class Zend_Dom_QueryTest extends PHPUnit_Framework_TestCase
 </foo>
 EOF;
         $document = new DOMDocument();
-        $document->loadXML($xml, LIBXML_PARSEHUGE);
+        $document->loadXML($xml, 524288 /* LIBXML_PARSEHUGE */);
         $this->query->setDocument($document);
         $test = $this->query->query('.baz');
         $this->assertTrue($test instanceof Zend_Dom_Query_Result);