summaryrefslogtreecommitdiff
path: root/ext/xsl/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xsl/tests')
-rw-r--r--ext/xsl/tests/bug54446.phpt18
-rw-r--r--ext/xsl/tests/bug54446_with_ini.phpt18
-rw-r--r--ext/xsl/tests/xsl-phpinfo.phpt2
-rw-r--r--ext/xsl/tests/xslt009.phpt2
-rw-r--r--ext/xsl/tests/xslt010.phpt6
-rw-r--r--ext/xsl/tests/xslt010_gt10129.phpt6
-rw-r--r--ext/xsl/tests/xslt011.phpt8
-rw-r--r--ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_getParameter-wrongparam.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_getParameter.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_removeParameter-wrongparams.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_removeParameter.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt2
-rw-r--r--ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt2
25 files changed, 48 insertions, 48 deletions
diff --git a/ext/xsl/tests/bug54446.phpt b/ext/xsl/tests/bug54446.phpt
index f00b118ff8..94197faa18 100644
--- a/ext/xsl/tests/bug54446.phpt
+++ b/ext/xsl/tests/bug54446.phpt
@@ -6,7 +6,7 @@ if (!extension_loaded('xsl')) die("skip Extension XSL is required\n");
?>
--FILE--
<?php
-include("prepare.inc");
+include("prepare.inc");
$outputfile = dirname(__FILE__)."/bug54446test.txt";
if (file_exists($outputfile)) {
@@ -30,11 +30,11 @@ EOT;
$xsl->loadXML( $sXsl );
-# START XSLT
-$proc->importStylesheet( $xsl );
+# START XSLT
+$proc->importStylesheet( $xsl );
-# TRASNFORM & PRINT
-print $proc->transformToXML( $dom );
+# TRASNFORM & PRINT
+print $proc->transformToXML( $dom );
if (file_exists($outputfile)) {
@@ -46,8 +46,8 @@ if (file_exists($outputfile)) {
#SET NO SECURITY PREFS
$proc->setSecurityPrefs(XSL_SECPREF_NONE);
-# TRASNFORM & PRINT
-print $proc->transformToXML( $dom );
+# TRASNFORM & PRINT
+print $proc->transformToXML( $dom );
if (file_exists($outputfile)) {
@@ -61,8 +61,8 @@ unlink($outputfile);
#SET SECURITY PREFS AGAIN
$proc->setSecurityPrefs( XSL_SECPREF_WRITE_FILE | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_CREATE_DIRECTORY);
-# TRASNFORM & PRINT
-print $proc->transformToXML( $dom );
+# TRASNFORM & PRINT
+print $proc->transformToXML( $dom );
if (file_exists($outputfile)) {
print "$outputfile exists, but shouldn't!\n";
diff --git a/ext/xsl/tests/bug54446_with_ini.phpt b/ext/xsl/tests/bug54446_with_ini.phpt
index 9edc8b38f3..c21292d4c1 100644
--- a/ext/xsl/tests/bug54446_with_ini.phpt
+++ b/ext/xsl/tests/bug54446_with_ini.phpt
@@ -6,7 +6,7 @@ if (!extension_loaded('xsl')) die("skip Extension XSL is required\n");
?>
--FILE--
<?php
-include("prepare.inc");
+include("prepare.inc");
$outputfile = dirname(__FILE__)."/bug54446test.txt";
if (file_exists($outputfile)) {
@@ -30,11 +30,11 @@ EOT;
$xsl->loadXML( $sXsl );
-# START XSLT
-$proc->importStylesheet( $xsl );
+# START XSLT
+$proc->importStylesheet( $xsl );
-# TRASNFORM & PRINT
-print $proc->transformToXML( $dom );
+# TRASNFORM & PRINT
+print $proc->transformToXML( $dom );
if (file_exists($outputfile)) {
@@ -46,8 +46,8 @@ if (file_exists($outputfile)) {
#SET NO SECURITY PREFS
$proc->setSecurityPrefs(XSL_SECPREF_NONE);
-# TRANSFORM & PRINT
-print $proc->transformToXML( $dom );
+# TRANSFORM & PRINT
+print $proc->transformToXML( $dom );
if (file_exists($outputfile)) {
@@ -61,8 +61,8 @@ unlink($outputfile);
#SET SECURITY PREFS AGAIN
$proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_CREATE_DIRECTORY);
-# TRANSFORM & PRINT
-print $proc->transformToXML( $dom );
+# TRANSFORM & PRINT
+print $proc->transformToXML( $dom );
if (file_exists($outputfile)) {
print "$outputfile exists, but shouldn't!\n";
diff --git a/ext/xsl/tests/xsl-phpinfo.phpt b/ext/xsl/tests/xsl-phpinfo.phpt
index 83e6729ce6..5f830356b7 100644
--- a/ext/xsl/tests/xsl-phpinfo.phpt
+++ b/ext/xsl/tests/xsl-phpinfo.phpt
@@ -1,7 +1,7 @@
--TEST--
Test phpinfo() displays xsl info
--SKIPIF--
-<?php
+<?php
if (!extension_loaded("xsl")) {
die("SKIP extension gettext not loaded\n");
}
diff --git a/ext/xsl/tests/xslt009.phpt b/ext/xsl/tests/xslt009.phpt
index 67b0d67faf..9d1110ddeb 100644
--- a/ext/xsl/tests/xslt009.phpt
+++ b/ext/xsl/tests/xslt009.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test 9: Stream Wrapper XPath-Document()
+Test 9: Stream Wrapper XPath-Document()
--SKIPIF--
<?php
require_once dirname(__FILE__) .'/skipif.inc';
diff --git a/ext/xsl/tests/xslt010.phpt b/ext/xsl/tests/xslt010.phpt
index adabbf55a0..a805e9fbaa 100644
--- a/ext/xsl/tests/xslt010.phpt
+++ b/ext/xsl/tests/xslt010.phpt
@@ -1,7 +1,7 @@
--TEST--
Test 10: EXSLT Support
--SKIPIF--
-<?php
+<?php
require_once dirname(__FILE__) .'/skipif.inc';
$proc = new xsltprocessor;
if (!$proc->hasExsltSupport()) die('skip EXSLT support not available');
@@ -16,10 +16,10 @@ $dom = new domDocument();
$dom->load(dirname(__FILE__)."/exslt.xsl");
$proc = new xsltprocessor;
$xsl = $proc->importStylesheet($dom);
-
+
$xml = new DomDocument();
$xml->load(dirname(__FILE__)."/exslt.xml");
-
+
print $proc->transformToXml($xml);
--EXPECT--
Test 10: EXSLT Support
diff --git a/ext/xsl/tests/xslt010_gt10129.phpt b/ext/xsl/tests/xslt010_gt10129.phpt
index 68ea6218db..a04f289984 100644
--- a/ext/xsl/tests/xslt010_gt10129.phpt
+++ b/ext/xsl/tests/xslt010_gt10129.phpt
@@ -1,7 +1,7 @@
--TEST--
Test 10: EXSLT Support
--SKIPIF--
-<?php
+<?php
require_once dirname(__FILE__) .'/skipif.inc';
$proc = new xsltprocessor;
if (!$proc->hasExsltSupport()) die('skip EXSLT support not available');
@@ -15,10 +15,10 @@ $dom = new domDocument();
$dom->load(dirname(__FILE__)."/exslt.xsl");
$proc = new xsltprocessor;
$xsl = $proc->importStylesheet($dom);
-
+
$xml = new DomDocument();
$xml->load(dirname(__FILE__)."/exslt.xml");
-
+
print $proc->transformToXml($xml);
--EXPECT--
Test 10: EXSLT Support
diff --git a/ext/xsl/tests/xslt011.phpt b/ext/xsl/tests/xslt011.phpt
index 5ddb3dbbe6..2ca4e91fe9 100644
--- a/ext/xsl/tests/xslt011.phpt
+++ b/ext/xsl/tests/xslt011.phpt
@@ -14,12 +14,12 @@ $dom = new domDocument();
$dom->load(dirname(__FILE__)."/xslt011.xsl");
$proc = new xsltprocessor;
$xsl = $proc->importStylesheet($dom);
-
+
$xml = new DomDocument();
$xml->load(dirname(__FILE__)."/xslt011.xml");
$proc->registerPHPFunctions();
print $proc->transformToXml($xml);
-
+
function foobar($id, $secondArg = "" ) {
if (is_array($id)) {
return $id[0]->value . " - " . $secondArg;
@@ -39,13 +39,13 @@ $dom = new domDocument();
function nonDomNode() {
return new foo();
}
-
+
class aClass {
static function aStaticFunction($id) {
return $id;
}
}
-
+
--EXPECTF--
Test 11: php:function Support
diff --git a/ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt b/ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt
index 19f7791032..7c8154c135 100644
--- a/ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt
+++ b/ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::getParameter with undefined parameter
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_getParameter-wrongparam.phpt b/ext/xsl/tests/xsltprocessor_getParameter-wrongparam.phpt
index 758d4bab21..b166529ea7 100644
--- a/ext/xsl/tests/xsltprocessor_getParameter-wrongparam.phpt
+++ b/ext/xsl/tests/xsltprocessor_getParameter-wrongparam.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::getparameter error handling
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_getParameter.phpt b/ext/xsl/tests/xsltprocessor_getParameter.phpt
index 2430bc88a4..376a1a3c36 100644
--- a/ext/xsl/tests/xsltprocessor_getParameter.phpt
+++ b/ext/xsl/tests/xsltprocessor_getParameter.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::getparameter functionality
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt
index 1f0453ec84..119a95de1a 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::registerPHPFunctions
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt
index a5f23735c9..f8e7e8460e 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt
@@ -5,7 +5,7 @@ When being called multiple times with an array,
registerPHPFunctions adds the new functions to the allowed parameter
list - it does not replace the previously allowed functions.
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt
index 9492fc6861..cc49371fe6 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::registerPHPFunctions with array and a not allowed function
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt
index 0e467aabaa..539e4207d4 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::registerPHPFunctions with array
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt
index 90d9c68208..f66632d2be 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt
@@ -4,7 +4,7 @@ Check xsltprocessor::registerPHPFunctions and a non-string function in xsl
The XSL script tries to call a php function that is not a string which
is expected to fail
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt
index a26c210333..e4cf0e816a 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt
@@ -3,7 +3,7 @@ Check xsltprocessor::registerPHPFunctions and a undefined php function
--DESCRIPTION--
The XSL script tries to call a php function that is not defined
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt
index f74d785042..13597d0a4d 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt
@@ -5,7 +5,7 @@ When being called multiple times with an array,
registerPHPFunctions adds the new functions to the allowed parameter
list - it does not replace the previously allowed functions.
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt
index f15c08d327..5bf929b30e 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt
@@ -5,7 +5,7 @@ When being called multiple times with a stringular function name only,
registerPHPFunctions adds the new function to the allowed parameter
list - it does not replace the old function.
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt
index 9257749714..1e7092c8bd 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::registerPHPFunctions with string and not allowed function
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt
index 5fbba909b1..9a824464d7 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::registerPHPFunctions with string
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt b/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt
index f35b470840..a5a62286c1 100644
--- a/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt
+++ b/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::removeParameter with invalid parameter
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_removeParameter-wrongparams.phpt b/ext/xsl/tests/xsltprocessor_removeParameter-wrongparams.phpt
index c2b4f4c0c3..5c65e05409 100644
--- a/ext/xsl/tests/xsltprocessor_removeParameter-wrongparams.phpt
+++ b/ext/xsl/tests/xsltprocessor_removeParameter-wrongparams.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::removeParameter wrong parameter handling
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_removeParameter.phpt b/ext/xsl/tests/xsltprocessor_removeParameter.phpt
index 92be056985..6568e2bae3 100644
--- a/ext/xsl/tests/xsltprocessor_removeParameter.phpt
+++ b/ext/xsl/tests/xsltprocessor_removeParameter.phpt
@@ -1,7 +1,7 @@
--TEST--
Check xsltprocessor::removeParameter functionality
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt b/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt
index 44e49de601..a3114bb755 100644
--- a/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt
+++ b/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt
@@ -3,7 +3,7 @@ Check xsltprocessor::setparameter error handling with both single and double quo
--DESCRIPTION--
Memleak: http://bugs.php.net/bug.php?id=48221
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
diff --git a/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt b/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt
index c4fcd709ea..dd17a72d49 100644
--- a/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt
+++ b/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt
@@ -3,7 +3,7 @@ Check xsltprocessor::setparameter error handling with no-string
--DESCRIPTION--
Memleak: http://bugs.php.net/bug.php?id=48221
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}