diff options
Diffstat (limited to 'ext/xsl/tests')
24 files changed, 24 insertions, 0 deletions
diff --git a/ext/xsl/tests/bug26384.phpt b/ext/xsl/tests/bug26384.phpt index 54ff5e767d..5b268da781 100644 --- a/ext/xsl/tests/bug26384.phpt +++ b/ext/xsl/tests/bug26384.phpt @@ -27,6 +27,7 @@ print $proc->transformToXml($dom); //this segfaulted before print $dom->documentElement->firstChild->nextSibling->nodeName; +?> --EXPECT-- HERE ROW diff --git a/ext/xsl/tests/bug48221.phpt b/ext/xsl/tests/bug48221.phpt index 2d08b3d291..6bc76bb6aa 100644 --- a/ext/xsl/tests/bug48221.phpt +++ b/ext/xsl/tests/bug48221.phpt @@ -10,6 +10,7 @@ include('prepare.inc'); $proc->importStylesheet($xsl); $proc->setParameter('', '', '"\''); $proc->transformToXml($dom); +?> --EXPECTF-- Warning: XSLTProcessor::transformToXml(): Cannot create XPath expression (string contains both quote and double-quotes) in %s on line %d --CREDITS-- diff --git a/ext/xsl/tests/bug54446.phpt b/ext/xsl/tests/bug54446.phpt index 1e518f4977..d0d100e2f7 100644 --- a/ext/xsl/tests/bug54446.phpt +++ b/ext/xsl/tests/bug54446.phpt @@ -69,6 +69,7 @@ if (file_exists($outputfile)) { } else { print "OK, no file created\n"; } +?> --EXPECTF-- Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on line %d diff --git a/ext/xsl/tests/xslt004.phpt b/ext/xsl/tests/xslt004.phpt index 656c99086d..50ffd66d12 100644 --- a/ext/xsl/tests/xslt004.phpt +++ b/ext/xsl/tests/xslt004.phpt @@ -17,6 +17,7 @@ $proc->importStylesheet($xsl); print "\n"; print $proc->transformToXml($dom); print "\n"; +?> --EXPECT-- Test 4: Checking UTF8 Output <?xml version="1.0" encoding="utf-8"?> diff --git a/ext/xsl/tests/xslt009.phpt b/ext/xsl/tests/xslt009.phpt index 429e11f10d..25f8f6896f 100644 --- a/ext/xsl/tests/xslt009.phpt +++ b/ext/xsl/tests/xslt009.phpt @@ -20,6 +20,7 @@ if(!$xsl) { $proc->importStylesheet($xsl); print "\n"; print $proc->transformToXML($dom); +?> --EXPECT-- Test 9: Stream Wrapper XPath-Document() <?xml version="1.0" encoding="iso-8859-1"?> diff --git a/ext/xsl/tests/xslt010.phpt b/ext/xsl/tests/xslt010.phpt index dc1eac3ccb..62bc607417 100644 --- a/ext/xsl/tests/xslt010.phpt +++ b/ext/xsl/tests/xslt010.phpt @@ -21,6 +21,7 @@ $dom = new domDocument(); $xml->load(__DIR__."/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 d1de1722a1..b5f650623f 100644 --- a/ext/xsl/tests/xslt010_gt10129.phpt +++ b/ext/xsl/tests/xslt010_gt10129.phpt @@ -20,6 +20,7 @@ $dom = new domDocument(); $xml->load(__DIR__."/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 5eaa7fbd09..ba58ecb087 100644 --- a/ext/xsl/tests/xslt011.phpt +++ b/ext/xsl/tests/xslt011.phpt @@ -45,6 +45,7 @@ $dom = new domDocument(); 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 78191c2b6e..4311c30886 100644 --- a/ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt +++ b/ext/xsl/tests/xsltprocessor_getParameter-invalidparam.phpt @@ -10,6 +10,7 @@ Check xsltprocessor::getParameter with undefined parameter <?php include __DIR__ .'/prepare.inc'; var_dump($proc->getParameter('', 'doesnotexist')); +?> --EXPECT-- bool(false) --CREDITS-- diff --git a/ext/xsl/tests/xsltprocessor_getParameter.phpt b/ext/xsl/tests/xsltprocessor_getParameter.phpt index 6512b7b53e..b33220edad 100644 --- a/ext/xsl/tests/xsltprocessor_getParameter.phpt +++ b/ext/xsl/tests/xsltprocessor_getParameter.phpt @@ -12,6 +12,7 @@ include __DIR__ .'/prepare.inc'; $proc->importStylesheet($xsl); $proc->setParameter('', 'key', 'value'); var_dump($proc->getParameter('', 'key')); +?> --EXPECT-- string(5) "value" --CREDITS-- diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt index 18e7ddca97..5cdaec1685 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt @@ -21,6 +21,7 @@ var_dump($proc->transformToXml($dom)); //var_dump($proc->registerPHPFunctions(array())); //var_dump($proc->transformToXml($dom)); +?> --EXPECT-- NULL string(18) "This Is An Example" diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt index ab136735ef..2d733b6903 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-multiple.phpt @@ -24,6 +24,7 @@ var_dump($proc->registerPHPFunctions(array('strpos', 'ucwords'))); var_dump($proc->registerPHPFunctions(array('strrev', 'array_key_exists'))); var_dump($proc->registerPHPFunctions(array())); var_dump($proc->transformToXml($dom)); +?> --EXPECT-- NULL NULL diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt index 03b3f744e6..524d317713 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array-notallowed.phpt @@ -18,6 +18,7 @@ if(!$phpfuncxsl) { $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions(array())); var_dump($proc->transformToXml($dom)); +?> --EXPECTF-- NULL diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt index 5cfa497408..01e99976a7 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-array.phpt @@ -18,6 +18,7 @@ if(!$phpfuncxsl) { $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions(array('ucwords'))); var_dump($proc->transformToXml($dom)); +?> --EXPECT-- NULL string(18) "This Is An Example" diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt index e173842c4e..b83a1d0814 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt @@ -21,6 +21,7 @@ if(!$phpfuncxsl) { $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions()); var_dump($proc->transformToXml($dom)); +?> --EXPECTF-- NULL diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt index 85fcbe0d02..be98ad82e0 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt @@ -20,6 +20,7 @@ if(!$phpfuncxsl) { $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions()); var_dump($proc->transformToXml($dom)); +?> --EXPECTF-- NULL diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt index 3fb495d5a2..335adf8260 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-null.phpt @@ -23,6 +23,7 @@ $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions('ucwords')); var_dump($proc->registerPHPFunctions(null)); var_dump($proc->transformToXml($dom)); +?> --EXPECT-- NULL NULL diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt index 1ef40abc94..9dfbdc97d2 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-multiple.phpt @@ -23,6 +23,7 @@ $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions('ucwords')); var_dump($proc->registerPHPFunctions('strpos')); var_dump($proc->transformToXml($dom)); +?> --EXPECT-- NULL NULL diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt index cb6a274905..f8c14cdfb2 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string-notallowed.phpt @@ -18,6 +18,7 @@ if(!$phpfuncxsl) { $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions('strpos')); var_dump($proc->transformToXml($dom)); +?> --EXPECTF-- NULL diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt index ac9d4ffb9f..9200d19bbb 100644 --- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt +++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-string.phpt @@ -18,6 +18,7 @@ if(!$phpfuncxsl) { $proc->importStylesheet($phpfuncxsl); var_dump($proc->registerPHPFunctions('ucwords')); var_dump($proc->transformToXml($dom)); +?> --EXPECT-- NULL string(18) "This Is An Example" diff --git a/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt b/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt index 9eed0ccedc..14d72d145d 100644 --- a/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt +++ b/ext/xsl/tests/xsltprocessor_removeParameter-invalidparam.phpt @@ -11,6 +11,7 @@ Check xsltprocessor::removeParameter with invalid parameter include __DIR__ .'/prepare.inc'; $proc->importStylesheet($xsl); var_dump($proc->removeParameter('', 'doesnotexist')); +?> --EXPECT-- bool(false) --CREDITS-- diff --git a/ext/xsl/tests/xsltprocessor_removeParameter.phpt b/ext/xsl/tests/xsltprocessor_removeParameter.phpt index 6b9cb99d09..be463e8f9b 100644 --- a/ext/xsl/tests/xsltprocessor_removeParameter.phpt +++ b/ext/xsl/tests/xsltprocessor_removeParameter.phpt @@ -13,6 +13,7 @@ $proc->importStylesheet($xsl); $proc->setParameter('', 'key', 'value'); $proc->removeParameter('', 'key'); var_dump($proc->getParameter('', 'key')); +?> --EXPECT-- bool(false) --CREDITS-- diff --git a/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt b/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt index efefe0f83b..a2f125a000 100644 --- a/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt +++ b/ext/xsl/tests/xsltprocessor_setparameter-errorquote.phpt @@ -14,6 +14,7 @@ include __DIR__ .'/prepare.inc'; $proc->importStylesheet($xsl); $proc->setParameter('', '', '"\''); $proc->transformToXml($dom); +?> --EXPECTF-- Warning: XSLTProcessor::transformToXml(): Cannot create XPath expression (string contains both quote and double-quotes) in %s on line %d --CREDITS-- diff --git a/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt b/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt index 2c723434aa..87d186eb6f 100644 --- a/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt +++ b/ext/xsl/tests/xsltprocessor_setparameter-nostring.phpt @@ -14,6 +14,7 @@ include __DIR__ .'/prepare.inc'; $proc->importStylesheet($xsl); var_dump($proc->setParameter('', array(4, 'abc'))); $proc->transformToXml($dom); +?> --EXPECTF-- Warning: XSLTProcessor::setParameter(): Invalid parameter array in %s on line %d bool(false) |