helly Thu Oct 23 03:14:51 2003 EDT
Modified files:
/spl/tests forward.phpt sequence.phpt
Log:
Update tests
Index: spl/tests/forward.phpt
diff -u spl/tests/forward.phpt:1.7 spl/tests/forward.phpt:1.8
--- spl/tests/forward.phpt:1.7 Thu Sep 18 12:26:29 2003
+++ spl/tests/forward.phpt Thu Oct 23 03:14:50 2003
@@ -34,7 +34,9 @@
$i = new c();
-$c_info = array(get_class($i) => array('inheits' => class_parents($i), 'implements'
=> class_implements($i)));
+$implements = class_implements($i);
+asort($implements);
+$c_info = array(get_class($i) => array('inheits' => class_parents($i), 'implements'
=> $implements));
print_r($c_info);
$methods = get_class_methods("spl_forward_assoc");
sort($methods);
@@ -75,9 +77,9 @@
[implements] => Array
(
- [spl_forward_assoc] => spl_forward_assoc
[spl_assoc] => spl_assoc
[spl_forward] => spl_forward
+ [spl_forward_assoc] => spl_forward_assoc
)
)
Index: spl/tests/sequence.phpt
diff -u spl/tests/sequence.phpt:1.6 spl/tests/sequence.phpt:1.7
--- spl/tests/sequence.phpt:1.6 Thu Sep 18 12:26:29 2003
+++ spl/tests/sequence.phpt Thu Oct 23 03:14:50 2003
@@ -52,8 +52,13 @@
$t = new c();
$i = $t->newIterator();
-$c_info = array(get_class($t) => array('inheits' => class_parents($t), 'implements'
=> class_implements($t)),
- get_class($i) => array('inheits' => class_parents($i), 'implements'
=> class_implements($i)));
+$implements_t = class_implements($t);
+asort($implements_t);
+$implements_i = class_implements($i);
+asort($implements_i);
+
+$c_info = array(get_class($t) => array('inheits' => class_parents($t), 'implements'
=> $implements_t),
+ get_class($i) => array('inheits' => class_parents($i), 'implements'
=> $implements_i));
print_r($c_info);
foreach($i as $w) {
@@ -91,11 +96,11 @@
[implements] => Array
(
- [spl_sequence_assoc] => spl_sequence_assoc
- [spl_forward_assoc] => spl_forward_assoc
[spl_assoc] => spl_assoc
[spl_forward] => spl_forward
+ [spl_forward_assoc] => spl_forward_assoc
[spl_sequence] => spl_sequence
+ [spl_sequence_assoc] => spl_sequence_assoc
)
)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php