Home > Archive > PHP Questions and Answers > May 2006 > Re: [PHP-QA] tests - array_chunk, array_count_values, array_diff_key
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PHP-QA] tests - array_chunk, array_count_values, array_diff_key
|
|
| Antony Dovgal 2006-05-19, 3:58 am |
| Committed (with minor modifications), thanks!
On 19.05.2006 11:07, Ligaya Turmelle wrote:
>
> ------------------------------------------------------------------------
>
> --TEST--
> basic array_chunk test
> --INI--
> display_errors=0
> track_errors=1
Just curious: why did you need to suppress errors?
I'm sure we'd like to test the error messages too and you can use --EXPECTF-- section for that
(see your tests in CVS, that's basically what I changed there).
--
Wbr,
Antony Dovgal
| |
| Ligaya Turmelle 2006-05-21, 6:58 pm |
| Antony Dovgal wrote:
> Committed (with minor modifications), thanks!
>
> On 19.05.2006 11:07, Ligaya Turmelle wrote:
>
>
>
> Just curious: why did you need to suppress errors?
>
> I'm sure we'd like to test the error messages too and you can use
> --EXPECTF-- section for that (see your tests in CVS, that's basically
> what I changed there).
>
I asked how to handle the errors earlier in the w ... That was how I
was "shown" to do it.
--
life is a game... so have fun.
| |
| Marcus Boerger 2006-05-23, 6:58 pm |
| Hello Ligaya,
Monday, May 22, 2006, 12:20:01 AM, you wrote:
> Antony Dovgal wrote:
> I asked how to handle the errors earlier in the w ... That was how I
> was "shown" to do it.
Well, run-tests.php takes care for a bunch of ini settings. It's probably
easiest if you check for that list in the test script. Easiy to find by
searching for "display-errors" for instance.
Also hava a look at: php run-tests.php -h
Best regards,
Marcus
|
|
|
|
|