]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Sat, 25 Aug 2007 16:02:11 +0000 (16:02 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 25 Aug 2007 16:02:11 +0000 (16:02 +0000)
Zend/tests/ns_035.phpt
Zend/tests/ns_036.phpt

index 0c614825b17dc18d067d751fe35beffb6d08b7e9..259d17f6e3298428cf3fa9a315a2eaf00a022b47 100755 (executable)
@@ -1,5 +1,7 @@
 --TEST--
 035: Name ambiguity in compile-time constant reference (php name)
+--SKIPIF--
+<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
 --FILE--
 <?php
 namespace A;
@@ -13,6 +15,8 @@ var_dump(ArrayObject::STD_PROP_LIST);
 var_dump(::ArrayObject::STD_PROP_LIST);
 f1();
 f2();
+
+?>
 --EXPECT--
 int(1)
 int(1)
index f631f71d02e2e29a6760899d7da343e6dfc30a41..9825c8fc1f7021d0c04e731e03746cda525e717d 100755 (executable)
@@ -1,5 +1,7 @@
 --TEST--
 036: Name ambiguity in compile-time constant reference (ns name)
+--SKIPIF--
+<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
 --FILE--
 <?php
 namespace A;
@@ -32,6 +34,7 @@ f2();
 f3();
 f4();
 f5();
+?>
 --EXPECT--
 int(2)
 int(1)