]> granicus.if.org Git - php/commitdiff
Rename *.php files in ext/dom tests to *.inc
authorPeter Kokot <peterkokot@gmail.com>
Fri, 21 Sep 2018 18:06:47 +0000 (20:06 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 23 Sep 2018 15:22:55 +0000 (17:22 +0200)
*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.

25 files changed:
ext/dom/tests/DOMDocument_loadXML_basic.phpt
ext/dom/tests/DOMDocument_loadXML_error1.phpt
ext/dom/tests/DOMDocument_loadXML_error2.phpt
ext/dom/tests/DOMDocument_loadXML_error3.phpt
ext/dom/tests/DOMDocument_loadXML_error4.phpt
ext/dom/tests/DOMDocument_loadXML_error5.phpt
ext/dom/tests/DOMDocument_loadXML_variation1.phpt
ext/dom/tests/DOMDocument_loadXML_variation2.phpt
ext/dom/tests/DOMDocument_loadXML_variation3.phpt
ext/dom/tests/DOMDocument_loadXML_variation4.phpt
ext/dom/tests/DOMDocument_load_basic.phpt
ext/dom/tests/DOMDocument_load_error1.phpt
ext/dom/tests/DOMDocument_load_error2.phpt
ext/dom/tests/DOMDocument_load_error3.phpt
ext/dom/tests/DOMDocument_load_error4.phpt
ext/dom/tests/DOMDocument_load_error5.phpt
ext/dom/tests/DOMDocument_load_variation1.phpt
ext/dom/tests/DOMDocument_load_variation2.phpt
ext/dom/tests/DOMDocument_load_variation3.phpt
ext/dom/tests/DOMDocument_load_variation4.phpt
ext/dom/tests/domdocumentload_test_method.inc [moved from ext/dom/tests/domdocumentload_test_method.php with 81% similarity]
ext/dom/tests/domdocumentload_test_method_savexml.inc [moved from ext/dom/tests/domdocumentload_test_method_savexml.php with 82% similarity]
ext/dom/tests/domdocumentload_utilities.inc [moved from ext/dom/tests/domdocumentload_utilities.php with 100% similarity]
ext/dom/tests/domdocumentloadxml_test_method.inc [moved from ext/dom/tests/domdocumentloadxml_test_method.php with 82% similarity]
ext/dom/tests/domdocumentloadxml_test_method_savexml.inc [moved from ext/dom/tests/domdocumentloadxml_test_method_savexml.php with 83% similarity]

index 569593c00758dee4f3de48cb746594e38345c69a..cf25c26d6227c9d64766110ef6c4dee41c69e875 100644 (file)
@@ -17,5 +17,5 @@ XML_FILE=/book.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECT--
index 52d44ea291dae4fc8f05d3635f53c8e17ae588b6..5a2f46e22000ff69c5e4a96f2566a0c9dd8f8deb 100644 (file)
@@ -17,7 +17,7 @@ XML_FILE=/not_well_formed.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s
 
index 6ac4193dafd40e0df6e5ee3c5ff00ab797ce78bb..3b8e2b48b16382bec17872972637f4eb0f3ec83b 100644 (file)
@@ -17,7 +17,7 @@ XML_FILE=/not_well_formed2.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): AttValue: " or ' expected %s
 
index 07f7ca77383bcc59ccdf9e6d41f911714ccfd376..be37b5552b8bf9861785f4b36a6b3bb58e8ede91 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/not_well_formed3.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: boOk line 8 and book %s
index e35d3dcea5c83d5efe9f57170360d5671c4cb222..d2cc3c5dd2263d98756a01b0336b7a87f23ad31f 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/not_well_formed4.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Unsupported version '3.1' %s
index a4aa1858f58cc1a5f1b5ddea6db0e9945e532796..d5eaadb06d922f5c8634ddca3d118afed6f38798 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/not_well_formed5.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s
index 558137526f27ee5aed9bbb8214ce24b7a7d1cb79..e3a3d94d3b72b6e14c5c4a20aa722fff08404138 100644 (file)
@@ -17,5 +17,5 @@ XML_FILE=/book_with_dtd2.xml
 LOAD_OPTIONS=LIBXML_DTDLOAD
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECT--
index 71f638efc142d97866699b8891c39a3db08536b0..9f9a5edc07f55807c6e47be33af1996961677073 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/wrong_book_with_dtd2.xml
 LOAD_OPTIONS=LIBXML_DTDVALID
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --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
index 8e61ec4dbcc5d34ce0c9c6991a358c6a529286f3..e0186c802da1b873c8191f6a533216425667d552 100644 (file)
@@ -18,5 +18,5 @@ XML_FILE=/wrong_book_with_dtd.xml
 LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method.php
+domdocumentloadxml_test_method.inc
 --EXPECT--
index 4f1ea37c1924fe5a91a3d0cc88adec1fa1594f20..ab150636425cbdd47de2e71507cce31f8569daf5 100644 (file)
@@ -18,7 +18,7 @@ XML_FILE=/book_with_dtd2.xml
 LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentloadxml_test_method_savexml.php
+domdocumentloadxml_test_method_savexml.inc
 --EXPECT--
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE books [
index 6d70ed45222069b765743c0903383689370f589a..7512fad6c7fb5700f0fd2c484c3e6d805ec9eff2 100644 (file)
@@ -17,5 +17,5 @@ XML_FILE=/book.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECT--
index 2ac3f50979c647a3cdc7e636c346caa8d7470b00..4f68d46dd5cd7fe74a8f78390c6e84e06f630947 100644 (file)
@@ -17,7 +17,7 @@ XML_FILE=/not_well_formed.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s
 
index 23a5e4827d55724ec233cabd59989dfa1e915d22..ee8a96fc0646dd29856121a846dbe9e8868c58a1 100644 (file)
@@ -17,7 +17,7 @@ XML_FILE=/not_well_formed2.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): AttValue: " or ' expected %s
 
index b9ac49c466707ef4249fa29b57437d3c0795bdd5..1e0438b257b806b82c033cf3c8b14b3abd9cc3ff 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/not_well_formed3.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: boOk line 8 and book %s
index ca9ed79a3e84761dc70042b8db58e79c7f405df5..6fcaff82ff24fbe4d9cacaca530a276664a4f8d4 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/not_well_formed4.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Unsupported version '3.1' %s
index a374f9474d147f4a3f262a4fffa66dc67fd28197..e9b89cb0bf11f91234a7e924452ab625f0690000 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/not_well_formed5.xml
 LOAD_OPTIONS=0
 EXPECTED_RESULT=0
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECTF--
 Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s
index b2b99e74c77ab58eeda6c3d068f76912acdbae7a..f03920155ac5236ef9fe009d6762d7d8e98c96e8 100644 (file)
@@ -17,5 +17,5 @@ XML_FILE=/book_with_dtd.xml
 LOAD_OPTIONS=LIBXML_DTDLOAD
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECT--
index c8460e55eb2ea87d075eb4a7e260a02d79471dbb..53aed7315ee54567f4588c2d4f53bee1a8ec31b0 100644 (file)
@@ -17,6 +17,6 @@ XML_FILE=/wrong_book_with_dtd.xml
 LOAD_OPTIONS=LIBXML_DTDVALID
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --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
index 77801d475e0bd572e4692904413cecb4d403452e..54d44b8263c58cdf1989bbdded018c2dc9d67e8c 100644 (file)
@@ -18,5 +18,5 @@ XML_FILE=/wrong_book_with_dtd.xml
 LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentload_test_method.php
+domdocumentload_test_method.inc
 --EXPECT--
index 3bf7ccc04d85c5adddce75af1222bc8800f9e065..3c7194ac5630493faed99311b3ee7926e031e33c 100644 (file)
@@ -18,7 +18,7 @@ XML_FILE=/book_with_dtd.xml
 LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
-domdocumentload_test_method_savexml.php
+domdocumentload_test_method_savexml.inc
 --EXPECT--
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE books SYSTEM "books.dtd">
similarity index 81%
rename from ext/dom/tests/domdocumentload_test_method.php
rename to ext/dom/tests/domdocumentload_test_method.inc
index a15c9e53be85ec4e90601784e10d5271188ec70a..a643b428d1b0be37ad849d60e35749b0d9e153a3 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-include(dirname(__FILE__) . '/domdocumentload_utilities.php');
+include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
 
 $doc = new DOMDocument();
 
similarity index 82%
rename from ext/dom/tests/domdocumentload_test_method_savexml.php
rename to ext/dom/tests/domdocumentload_test_method_savexml.inc
index c98ecf92f77647584848bdce81e555433ccfc854..6f812eeac8fd1e1590de6ee760b065a6c4bd7287 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-include(dirname(__FILE__) . '/domdocumentload_utilities.php');
+include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
 
 $doc = new DOMDocument();
 
similarity index 82%
rename from ext/dom/tests/domdocumentloadxml_test_method.php
rename to ext/dom/tests/domdocumentloadxml_test_method.inc
index ed2f38b6c6997ac39e0c28c13e87255410fe0939..66b02bf20b3e0dda03b42fd0ff6b0dc7c3528cf4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-include(dirname(__FILE__) . '/domdocumentload_utilities.php');
+include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
 
 $doc = new DOMDocument();
 
similarity index 83%
rename from ext/dom/tests/domdocumentloadxml_test_method_savexml.php
rename to ext/dom/tests/domdocumentloadxml_test_method_savexml.inc
index 1ef72d58d762c6eb449b41a796b4dc1dc0bc61a8..8b000cb0dd3bb865dc8842ea5a0c6011ee2c1ca7 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-include(dirname(__FILE__) . '/domdocumentload_utilities.php');
+include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
 
 $doc = new DOMDocument();