cvs: php4 /ext/xslt/tests xslt_getopt.phpt
| From: | Melvyn Sopacua | Date: | Thu, 31 Oct 2002 21:09:04 +0000 |
| Subject: | cvs: php4 /ext/xslt/tests xslt_getopt.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15683@lists.php.net to get a copy of this message | ||
msopacua Thu Oct 31 16:09:04 2002 EDT
Added files:
/php4/ext/xslt/tests xslt_getopt.phpt
Log:
Add test for xslt_getopt
# see next commit
Index: php4/ext/xslt/tests/xslt_getopt.phpt
+++ php4/ext/xslt/tests/xslt_getopt.phpt
--TEST--
xslt_getopt function and public entities
--SKIPIF--
<?php
include("skipif.inc");
if(!function_exists('xslt_getopt')) {
die("skip\n");
}
?>
--FILE--
<?php
error_reporting(E_ALL);
$xh = xslt_create();
xslt_setopt($xh, XSLT_SABOPT_PARSE_PUBLIC_ENTITIES);
if(xslt_getopt($xh) == XSLT_SABOPT_PARSE_PUBLIC_ENTITIES)
print("OK\n");
else
var_dump(xslt_getopt($xh));
xslt_setopt($xh, XSLT_SABOPT_PARSE_PUBLIC_ENTITIES | XSLT_SABOPT_DISABLE_ADDING_META);
if(xslt_getopt($xh) == XSLT_SABOPT_PARSE_PUBLIC_ENTITIES | XSLT_SABOPT_DISABLE_ADDING_META)
print("OK\n");
else
var_dump(xslt_getopt($xh));
xslt_setopt($xh, xslt_getopt($xh) | XSLT_OPT_SILENT);
if(xslt_getopt($xh) == XSLT_SABOPT_PARSE_PUBLIC_ENTITIES | XSLT_SABOPT_DISABLE_ADDING_META |
XSLT_OPT_SILENT)
print("OK\n");
else
var_dump(xslt_getopt($xh));
xslt_free($xh);
?>
--EXPECT--
OK
OK
OK