cvs: php-src /ext/spl/tests dit_001.phpt

From: Date: Wed, 29 Sep 2004 20:09:54 +0000
Subject: cvs: php-src /ext/spl/tests dit_001.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28845@lists.php.net to get a copy of this message
helly Wed Sep 29 16:09:54 2004 EDT Modified files: /php-src/ext/spl/tests dit_001.phpt Log: - Fix tests (atm preg_match() is wrong) http://cvs.php.net/diff.php/php-src/ext/spl/tests/dit_001.phpt?r1=1.2&r2=1.3&ty=u Index: php-src/ext/spl/tests/dit_001.phpt diff -u php-src/ext/spl/tests/dit_001.phpt:1.2 php-src/ext/spl/tests/dit_001.phpt:1.3 --- php-src/ext/spl/tests/dit_001.phpt:1.2 Wed Sep 29 05:43:33 2004 +++ php-src/ext/spl/tests/dit_001.phpt Wed Sep 29 16:09:52 2004 @@ -1,9 +1,12 @@ --TEST-- SPL: Problem with casting to string +--SKIPIF-- +<?php if (!extension_loaded("spl")) print "skip"; ?> --FILE-- <?php $d = new DirectoryIterator('.'); var_dump($d); +var_dump(is_string($d)); preg_match('/x/', $d); var_dump(is_string($d)); ?> @@ -11,5 +14,6 @@ --EXPECTF-- object(DirectoryIterator)#%d (0) { } -bool(true) +bool(false) +bool(false) ===DONE===

« previous php.cvs (#28845) next »