From e79f7e3bd992c7f0915ef9afe7afb6d79740527a Mon Sep 17 00:00:00 2001
From: jvoisin
Date: Mon, 14 Jan 2019 19:29:25 +0000
Subject: Reorganize the testsuite
Splitting the testsuite in several components makes it easier to manage and comprehend.
This was also needed some some tests aren't passing on Alpine Linux, but we still want to run
as many of them as we can on this platform.---
src/tests/disable_xxe_xml_parse.phpt | 106 -----------------------------------
1 file changed, 106 deletions(-)
delete mode 100644 src/tests/disable_xxe_xml_parse.phpt
(limited to 'src/tests/disable_xxe_xml_parse.phpt')
diff --git a/src/tests/disable_xxe_xml_parse.phpt b/src/tests/disable_xxe_xml_parse.phpt
deleted file mode 100644
index ca77729..0000000
--- a/src/tests/disable_xxe_xml_parse.phpt
+++ /dev/null
@@ -1,106 +0,0 @@
---TEST--
-Disable XXE in xml_parse
---SKIPIF--
-
---INI--
-sp.configuration_file={PWD}/config/disable_xxe.ini
---FILE--
-
-
-]>
-&foo;
-EOD;
-
-file_put_contents('content.xml', $xml);
-
-function create_parser() {
- $parser = xml_parser_create();
- xml_set_element_handler(
- $parser,
- function($parser, $name, array $attributes) {
- var_dump($name);
- echo "\n";
- var_dump($attributes);
- },
- function($parser, $name) {
- var_dump($name);
- }
- );
-
- xml_set_character_data_handler(
- $parser,
- function ($parser, $text){
- echo 'text' . $text;
- }
- );
-
- return $parser;
-}
-
-libxml_disable_entity_loader(true);
-$parser = create_parser();
-$doc = xml_parse($parser, $xml, true);
-xml_parser_free($parser);
-
-libxml_disable_entity_loader(false);
-$parser = create_parser();
-$doc = xml_parse($parser, $xml, true);
-xml_parser_free($parser);
-
-$xml = "foo";
-file_put_contents('content.xml', $xml);
-$parser = create_parser();
-$doc = xml_parse($parser, $xml, true);
-xml_parser_free($parser);
-
---EXPECT--
-string(4) "TEST"
-
-array(0) {
-}
-string(7) "TESTING"
-
-array(0) {
-}
-string(7) "TESTING"
-string(4) "TEST"
-string(4) "TEST"
-
-array(0) {
-}
-string(7) "TESTING"
-
-array(0) {
-}
-string(7) "TESTING"
-string(4) "TEST"
-string(4) "TEST"
-
-array(0) {
-}
-string(7) "TESTING"
-
-array(0) {
-}
-textfoostring(7) "TESTING"
-string(4) "TEST"
---CLEAN--
-
--
cgit v1.3