Fwd: Re: [PHP-QA] Help for test

From: Date: Fri, 16 Jul 2010 17:55:48 +0000
Subject: Fwd: Re: [PHP-QA] Help for test
Groups: php.qa 
Request: Send a blank email to php-qa+get-65609@lists.php.net to get a copy of this message
-------- 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 this reason I want
to try writing some tests.
You are welcome!
I have already looked the tested method page, but I don't know with which
function 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

« previous php.qa (#65609) next »