Re: Question on writing tests
| From: | Derick Rethans | Date: | Thu, 18 May 2006 07:35:50 +0000 |
| Subject: | Re: Question on writing tests | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26775@lists.php.net to get a copy of this message | ||
On Thu, 18 May 2006, Ligaya Turmelle wrote:
> 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
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org