diff options
Diffstat (limited to 'ext/xsl/tests')
23 files changed, 34 insertions, 34 deletions
diff --git a/ext/xsl/tests/bug54446.phpt b/ext/xsl/tests/bug54446.phpt index f960a9822d..61a79a9e11 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)) { @@ -31,10 +31,10 @@ EOT; $xsl->loadXML( $sXsl ); # START XSLT -$proc->importStylesheet( $xsl ); +$proc->importStylesheet( $xsl ); # TRASNFORM & PRINT -print $proc->transformToXML( $dom ); +print $proc->transformToXML( $dom ); if (file_exists($outputfile)) { @@ -47,7 +47,7 @@ if (file_exists($outputfile)) { $proc->setSecurityPrefs(XSL_SECPREF_NONE); # TRASNFORM & PRINT -print $proc->transformToXML( $dom ); +print $proc->transformToXML( $dom ); if (file_exists($outputfile)) { @@ -62,7 +62,7 @@ unlink($outputfile); $proc->setSecurityPrefs( XSL_SECPREF_WRITE_FILE | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_CREATE_DIRECTORY); # TRASNFORM & PRINT -print $proc->transformToXML( $dom ); +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 03756bbc8e..bed6a7d34e 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)) { @@ -31,10 +31,10 @@ EOT; $xsl->loadXML( $sXsl ); # START XSLT -$proc->importStylesheet( $xsl ); +$proc->importStylesheet( $xsl ); # TRASNFORM & PRINT -print $proc->transformToXML( $dom ); +print $proc->transformToXML( $dom ); if (file_exists($outputfile)) { @@ -47,7 +47,7 @@ if (file_exists($outputfile)) { $proc->setSecurityPrefs(XSL_SECPREF_NONE); # TRANSFORM & PRINT -print $proc->transformToXML( $dom ); +print $proc->transformToXML( $dom ); if (file_exists($outputfile)) { @@ -62,7 +62,7 @@ unlink($outputfile); $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_CREATE_DIRECTORY); # TRANSFORM & PRINT -print $proc->transformToXML( $dom ); +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/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 858cd93119..41bcf4ad10 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 f6d9a8852f..aa5ddcf15c 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 ec6378df26..8f2974ec0f 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 be67f2261b..af9d633d1d 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 6147819269..9879fb38f7 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 90e5788350..642b58e74a 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 80016e425b..a142dfa431 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 31e2edea51..5eeb793ed5 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 d9408630e7..2a3474eee3 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 bbfdc20cd7..2cea8884d9 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"); } |
