Re: Fwd: Re: [PHP-QA] Help for test
| From: | Florent Caleyron | Date: | Sat, 17 Jul 2010 13:54:52 +0000 |
| Subject: | Re: Fwd: Re: [PHP-QA] Help for test | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65613@lists.php.net to get a copy of this message | ||
Hi,
Sorry, please ignore my ps.
severity property is initialized with E_ERROR which is egal to 1.
Regards,
Florent
On 07/16/2010 07:55 PM, Florent Caleyron wrote:
-------- Original Message -------- Subject: Re: [PHP-QA] Help for test Date: Wed, 14 Jul 2010 15:51:47 +0200 From: Florent Caleyron <florent.caleyron@gmail.com> To: Patrick ALLAERT <patrickallaert@php.net> Hi, Thanks for the fast answer. I try to write test for ErrorException::getSeverity(), you could find them in attached files. There is 2 archives one for PHP5.2 and the other for PHP5.3. I'm not sure with naming conventions and if I have made enough tests. ps: I made a default value test to test the value return by getSeverity when there is no severity param given to the constructor, but i can't find why getSeverity return 1. Regards, Florent 2010/7/14 Patrick ALLAERT <patrickallaert@php.net <mailto:patrickallaert@php.net>>Hi Florent,2010/7/14 Florent Caleyron <florent.caleyron@gmail.com <mailto:florent.caleyron@gmail.com>>:Hi, I'm a French developer and I really like PHP. That's for thisreason I wantto try writing some tests.You are welcome!I have already looked the tested method page, but I don't knowwith whichfunction I could start. If you could guide me that's be great.You can maybe start with: ErrorException::getSeverity().This should be quite simple and it isn't tested yet as per [1] and [2]Looking forward to your reply. Best Regards[1] http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tested_functions <http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tested_functions> [2] http://gcov.php.net/PHP_HEAD/lcov_html/var/php_gcov/PHP_HEAD/Zend/zend_exceptions.c.gcov.php (line 321)Regards, Patrick