summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2004-01-10 11:50:49 +0000
committerRob Richards <rrichards@php.net>2004-01-10 11:50:49 +0000
commit840979858cc00ea1e835fdb7faa6bd1e253fc05a (patch)
tree18a18dc60a1a7bc9decf12da2dac1a753d7adc2b /ext
parent394bf2ba5b457a5befed5a7fbadae0ce50e024d4 (diff)
downloadphp-git-840979858cc00ea1e835fdb7faa6bd1e253fc05a.tar.gz
Update tests
Diffstat (limited to 'ext')
-rw-r--r--ext/xsl/tests/xslt002.phpt4
-rw-r--r--ext/xsl/tests/xslt004.phpt4
-rw-r--r--ext/xsl/tests/xslt005.phpt4
-rw-r--r--ext/xsl/tests/xslt008.phpt2
4 files changed, 7 insertions, 7 deletions
diff --git a/ext/xsl/tests/xslt002.phpt b/ext/xsl/tests/xslt002.phpt
index d8a0458d01..6c9f0c632c 100644
--- a/ext/xsl/tests/xslt002.phpt
+++ b/ext/xsl/tests/xslt002.phpt
@@ -9,11 +9,11 @@ include("prepare.inc");
// changing output method to html
$xp = new domxpath($xsl);
$res = $xp->query("/xsl:stylesheet/xsl:output/@method");
-if (count($res) != 1) {
+if ($res->length != 1) {
print "No or more than one xsl:output/@method found";
exit;
}
-$res[0]->value = "html";
+$res->item(0)->value = "html";
$proc->importStylesheet($xsl);
print "\n";
print $proc->transformToXml($dom);
diff --git a/ext/xsl/tests/xslt004.phpt b/ext/xsl/tests/xslt004.phpt
index 6c4da2d0ef..6e8f476018 100644
--- a/ext/xsl/tests/xslt004.phpt
+++ b/ext/xsl/tests/xslt004.phpt
@@ -8,11 +8,11 @@ echo "Test 4: Checking UTF8 Output";
include("prepare.inc");
$xp = new domxpath($xsl);
$res = $xp->query("/xsl:stylesheet/xsl:output/@encoding");
-if (count($res) != 1) {
+if ($res->length != 1) {
print "No or more than one xsl:output/@encoding found";
exit;
}
-$res[0]->value = "utf-8";
+$res->item(0)->value = "utf-8";
$proc->importStylesheet($xsl);
print "\n";
print $proc->transformToXml($dom);
diff --git a/ext/xsl/tests/xslt005.phpt b/ext/xsl/tests/xslt005.phpt
index 272a226c79..a70e6ea4f1 100644
--- a/ext/xsl/tests/xslt005.phpt
+++ b/ext/xsl/tests/xslt005.phpt
@@ -8,11 +8,11 @@ echo "Test 5: Checking Indent";
include("prepare.inc");
$xp = new domxpath($xsl);
$res = $xp->query("/xsl:stylesheet/xsl:output/@indent");
-if (count($res) != 1) {
+if ($res->length != 1) {
print "No or more than one xsl:output/@indent found";
exit;
}
-$res[0]->value = "yes";
+$res->item(0)->value = "yes";
$proc->importStylesheet($xsl);
print "\n";
print $proc->transformToXml($dom);
diff --git a/ext/xsl/tests/xslt008.phpt b/ext/xsl/tests/xslt008.phpt
index 76dcb1174d..31514d0811 100644
--- a/ext/xsl/tests/xslt008.phpt
+++ b/ext/xsl/tests/xslt008.phpt
@@ -15,7 +15,7 @@ if(!$xsl) {
}
$xp = new domxpath($xsl);
$res = $xp->query("/xsl:stylesheet/xsl:include/@href");
-$res[0]->value = "compress.zlib://".dirname(__FILE__)."/xslt.xsl.gz";
+$res->item(0)->value = "compress.zlib://".dirname(__FILE__)."/xslt.xsl.gz";
$proc->importStylesheet($xsl);
print "\n";
print $proc->transformToXML($dom);