]> granicus.if.org Git - php/commitdiff
fix test
authorHannes Magnusson <bjori@php.net>
Thu, 28 Sep 2006 12:03:24 +0000 (12:03 +0000)
committerHannes Magnusson <bjori@php.net>
Thu, 28 Sep 2006 12:03:24 +0000 (12:03 +0000)
ext/xsl/tests/xslt010.phpt

index 7c46d030f4eaa4f76097504abda0256b2a4fbec0..1ac1a493c7fb50c55c579dfd49b421438e5bc6d1 100644 (file)
@@ -3,7 +3,9 @@ Test 10: EXSLT Support
 --SKIPIF--
 <?php require_once('skipif.inc'); 
 $proc = new xsltprocessor;
-if (!$proc->hasExsltSupport()) die('skip EXSLT support not available');?>
+if (!$proc->hasExsltSupport()) die('skip EXSLT support not available');
+if (LIBXSLT_VERSION < 10117) die('skip too old libxsl');
+?>
 --FILE--
 <?php
 echo "Test 10: EXSLT Support";
@@ -63,7 +65,7 @@ Test 10: EXSLT Support
     month-in-year        : 2
     month-name           : February
     month-abbreviation   : Feb
-    week-in-year         : 8
+    week-in-year         : 9
     day-in-year          : 60
     day-in-month         : 29
     day-of-week-in-month : 5
@@ -99,7 +101,7 @@ Test 10: EXSLT Support
     month-in-year        : 2
     month-name           : February
     month-abbreviation   : Feb
-    week-in-year         : 9
+    week-in-year         : 10
     day-in-year          : 60
     day-in-month         : 29
     day-of-week-in-month : 5
@@ -110,3 +112,4 @@ Test 10: EXSLT Support
     hour-in-day          : NaN
     minute-in-hour       : NaN
     second-in-minute     : NaN
+