Rename *.php files in ext/dom tests to *.inc

*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.
This commit is contained in:
Peter Kokot 2018-09-21 20:06:47 +02:00
parent f6605c788f
commit f116484cf1
25 changed files with 24 additions and 24 deletions

View file

@ -17,5 +17,5 @@ XML_FILE=/book.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECT-- --EXPECT--

View file

@ -17,7 +17,7 @@ XML_FILE=/not_well_formed.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s

View file

@ -17,7 +17,7 @@ XML_FILE=/not_well_formed2.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): AttValue: " or ' expected %s Warning: DOMDocument::load%r(XML){0,1}%r(): AttValue: " or ' expected %s

View file

@ -17,6 +17,6 @@ XML_FILE=/not_well_formed3.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: boOk line 8 and book %s Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: boOk line 8 and book %s

View file

@ -17,6 +17,6 @@ XML_FILE=/not_well_formed4.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Unsupported version '3.1' %s Warning: DOMDocument::load%r(XML){0,1}%r(): Unsupported version '3.1' %s

View file

@ -17,6 +17,6 @@ XML_FILE=/not_well_formed5.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s

View file

@ -17,5 +17,5 @@ XML_FILE=/book_with_dtd2.xml
LOAD_OPTIONS=LIBXML_DTDLOAD LOAD_OPTIONS=LIBXML_DTDLOAD
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECT-- --EXPECT--

View file

@ -17,6 +17,6 @@ XML_FILE=/wrong_book_with_dtd2.xml
LOAD_OPTIONS=LIBXML_DTDVALID LOAD_OPTIONS=LIBXML_DTDVALID
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Element book content does not follow the DTD, expecting (title , author), got (title author author ) %s Warning: DOMDocument::load%r(XML){0,1}%r(): Element book content does not follow the DTD, expecting (title , author), got (title author author ) %s

View file

@ -18,5 +18,5 @@ XML_FILE=/wrong_book_with_dtd.xml
LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method.php domdocumentloadxml_test_method.inc
--EXPECT-- --EXPECT--

View file

@ -18,7 +18,7 @@ XML_FILE=/book_with_dtd2.xml
LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentloadxml_test_method_savexml.php domdocumentloadxml_test_method_savexml.inc
--EXPECT-- --EXPECT--
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE books [ <!DOCTYPE books [

View file

@ -17,5 +17,5 @@ XML_FILE=/book.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECT-- --EXPECT--

View file

@ -17,7 +17,7 @@ XML_FILE=/not_well_formed.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s

View file

@ -17,7 +17,7 @@ XML_FILE=/not_well_formed2.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): AttValue: " or ' expected %s Warning: DOMDocument::load%r(XML){0,1}%r(): AttValue: " or ' expected %s

View file

@ -17,6 +17,6 @@ XML_FILE=/not_well_formed3.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: boOk line 8 and book %s Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: boOk line 8 and book %s

View file

@ -17,6 +17,6 @@ XML_FILE=/not_well_formed4.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Unsupported version '3.1' %s Warning: DOMDocument::load%r(XML){0,1}%r(): Unsupported version '3.1' %s

View file

@ -17,6 +17,6 @@ XML_FILE=/not_well_formed5.xml
LOAD_OPTIONS=0 LOAD_OPTIONS=0
EXPECTED_RESULT=0 EXPECTED_RESULT=0
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s

View file

@ -17,5 +17,5 @@ XML_FILE=/book_with_dtd.xml
LOAD_OPTIONS=LIBXML_DTDLOAD LOAD_OPTIONS=LIBXML_DTDLOAD
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECT-- --EXPECT--

View file

@ -17,6 +17,6 @@ XML_FILE=/wrong_book_with_dtd.xml
LOAD_OPTIONS=LIBXML_DTDVALID LOAD_OPTIONS=LIBXML_DTDVALID
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECTF-- --EXPECTF--
Warning: DOMDocument::load%r(XML){0,1}%r(): Element book content does not follow the DTD, expecting (title , author), got (title author author ) %s Warning: DOMDocument::load%r(XML){0,1}%r(): Element book content does not follow the DTD, expecting (title , author), got (title author author ) %s

View file

@ -18,5 +18,5 @@ XML_FILE=/wrong_book_with_dtd.xml
LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method.php domdocumentload_test_method.inc
--EXPECT-- --EXPECT--

View file

@ -18,7 +18,7 @@ XML_FILE=/book_with_dtd.xml
LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS
EXPECTED_RESULT=1 EXPECTED_RESULT=1
--FILE_EXTERNAL-- --FILE_EXTERNAL--
domdocumentload_test_method_savexml.php domdocumentload_test_method_savexml.inc
--EXPECT-- --EXPECT--
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE books SYSTEM "books.dtd"> <!DOCTYPE books SYSTEM "books.dtd">

View file

@ -1,5 +1,5 @@
<?php <?php
include(dirname(__FILE__) . '/domdocumentload_utilities.php'); include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
$doc = new DOMDocument(); $doc = new DOMDocument();

View file

@ -1,5 +1,5 @@
<?php <?php
include(dirname(__FILE__) . '/domdocumentload_utilities.php'); include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
$doc = new DOMDocument(); $doc = new DOMDocument();

View file

@ -1,5 +1,5 @@
<?php <?php
include(dirname(__FILE__) . '/domdocumentload_utilities.php'); include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
$doc = new DOMDocument(); $doc = new DOMDocument();

View file

@ -1,5 +1,5 @@
<?php <?php
include(dirname(__FILE__) . '/domdocumentload_utilities.php'); include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
$doc = new DOMDocument(); $doc = new DOMDocument();