Re: Question on writing tests
| From: | Ligaya Turmelle | Date: | Thu, 18 May 2006 22:18:25 +0000 |
| Subject: | Re: Question on writing tests | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26776@lists.php.net to get a copy of this message | ||
Derick Rethans wrote:
On Thu, 18 May 2006, Ligaya Turmelle wrote:-- life is a game... so have fun.How am I to use that in the EXPECT section of the test? Sample test: --TEST-- basic array_chunk test--INI-- display_errors=0 track_errors=1--FILE-- <?php $input_array = array('a', 'b', 'c', 'd', 'e'); print_r(array_chunk($input_array, 0));echo $php_errmsg, "\n";print_r(array_chunk($input_array, 0, true));echo $php_errmsg, "\n";print_r(array_chunk($input_array, 1)); print_r(array_chunk($input_array, 1, true)); print_r(array_chunk($input_array, 2)); print_r(array_chunk($input_array, 2, true)); print_r(array_chunk($input_array, 10)); print_r(array_chunk($input_array, 10, true)); ?> --EXPECT--Check the output here... regards, Derick Hmm - never heard of the track_errors ini setting before... will look into it and Thanks.