andrey Tue Sep 30 11:22:34 2003 EDT Added files: /php-src/ext/standard/tests/array array_diff_1.phpt
Modified files: /php-src/ext/standard/tests/array 007.phpt Log: Move the test to new file. Index: php-src/ext/standard/tests/array/007.phpt diff -u php-src/ext/standard/tests/array/007.phpt:1.4 php-src/ext/standard/tests/array/007.phpt:1.5 --- php-src/ext/standard/tests/array/007.phpt:1.4 Tue Sep 30 11:06:05 2003 +++ php-src/ext/standard/tests/array/007.phpt Tue Sep 30 11:22:33 2003 @@ -2,12 +2,6 @@ Test array_diff and array_diff_assoc behaviour --FILE-- <?php -//-=-=-=-=- -$a = array(); -$b = 3; -$c = array(5); -array_diff($a, $b, $c); -//-=-=-=-=-=- $a = array(1,"big"=>2,3,6,3,5,3,3,3,3,3,3,3,3,3,3); $b = array(2,2,3,3,3,3,3,3,3,3,3,3,3,3,3); $c = array(-1,1); @@ -133,7 +127,6 @@ ?> --EXPECTF-- -Warning: array_diff(): Argument #2 is not an array in %s $a=array ( 0 => 1, 'big' => 2, Index: php-src/ext/standard/tests/array/array_diff_1.phpt +++ php-src/ext/standard/tests/array/array_diff_1.phpt --TEST-- Test array_diff when non-array is passed --FILE-- <?php //-=-=-=-=- $a = array(); $b = 3; $c = array(5); array_diff($a, $b, $c); //-=-=-=-=-=- echo "OK!"; ?> --EXPECTF-- Warning: array_diff(): Argument #2 is not an array in %s OK! -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php