# ext/calendar - New test scripts

- Thread: https://externals.io/message/17691
- Original archive: https://news-web.php.net/php.internals/17691
- Started by Rathna N on 2005-08-09T11:31:47+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #17691 — Rathna N — 2005-08-09T11:31:47+00:00

URL: https://externals.io/message/17691#17691

Sorry, I forgot to add subject line to the old mail.

On Mon, 08 Aug 2005 23:56:24 -0700, "Rathna N" <nrathna@fastmail.fm>
said:
> Hi All,
> this is first my post to this list. 
> I'm interested to do QA related contributions to PHP.
> 
> Pls do find the test scripts for Calendar extension at below links,
> 
> http://www.geocities.com/rs81099/calendartest.zip
> - contains the testscripts
> 
> http://www.geocities.com/rs81099/calendarTestOutput.txt
> - contains the test report on SUSE LINUX 9.2.1
> 
> I request you to review and commit the same, (If u r ok with the
> scripts).
> 
> Pls do pass on if u have any feedback to improve the quality of
> TestScripts.
> 
> Regards,
> Rathna.
> -- 
>   Rathna N
>   nrathna@fastmail.fm
> 
> -- 
> http://www.fastmail.fm - The professional email service
> 
-- 
  Rathna N
  nrathna@fastmail.fm

-- 
http://www.fastmail.fm - I mean, what is it about a decent email service?

---

## #17692 — Derick Rethans — 2005-08-09T11:45:06+00:00

URL: https://externals.io/message/17691#17692 · In reply to: #17691

> Sorry, I forgot to add subject line to the old mail.

the php-qa@lists.php.net list would be the best list for this subject.
As for the tests, it would be nice if you could provide a unified diff 
against CVS's HEAD. That's much easier than have to download a .zip file 
- we can more easily check the test cases then.

Some points on the tests:
- please always use lower case filenames for the tests.
- as --TEST-- name, please just use the name of the function, such as 
  "jdtojulian()" (without any other description)
- try always to cover edge cases in your tests. (For gregorian times, it 
  makes sense to check what it does around the beginning of the 
  gregorian calendar for example).
- prefer `var_dump()` over `print_r()`.
- Always use the ISO 8601 format for outputting date (if you're 
  formatting them yourself). See easter_date.phpt f.e.
- In easter_date.phpt, you'll have to check way more years - just 
  testing 3 is not enough.
- There is no --DESCRIPTION-- field as you used in GregorianToJD.phpt.
- Always use <?php and not <? in test cases (see JDToJulian.phpt).
- Please stick to the PEAR coding standards in your tests.

And thanks for picking this up! But perhaps I can suggest to start with 
other more used extensions? Most of our string and array functions don't 
have enough testcases either.

regards,
Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #17693 — Rathna N — 2005-08-09T11:52:26+00:00

URL: https://externals.io/message/17691#17693 · In reply to: #17692

thank you for the response.
I will incorporate the feedback and send the updated ones.

Regards,
Rathna.

On Tue, 9 Aug 2005 13:45:06 +0200 (CEST), "Derick Rethans"
<derick@php.net> said:
> 
> 
> > […]
> 
> the php-qa@lists.php.net list would be the best list for this subject.
> As for the tests, it would be nice if you could provide a unified diff 
> against CVS's HEAD. That's much easier than have to download a .zip file 
> - we can more easily check the test cases then.
> 
> Some points on the tests:
> - please always use lower case filenames for the tests.
> - as --TEST-- name, please just use the name of the function, such as 
>   "jdtojulian()" (without any other description)
> - try always to cover edge cases in your tests. (For gregorian times, it 
>   makes sense to check what it does around the beginning of the 
>   gregorian calendar for example).
> - prefer `var_dump()` over `print_r()`.
> - Always use the ISO 8601 format for outputting date (if you're 
>   formatting them yourself). See easter_date.phpt f.e.
> - In easter_date.phpt, you'll have to check way more years - just 
>   testing 3 is not enough.
> - There is no --DESCRIPTION-- field as you used in GregorianToJD.phpt.
> - Always use <?php and not <? in test cases (see JDToJulian.phpt).
> - Please stick to the PEAR coding standards in your tests.
> 
> And thanks for picking this up! But perhaps I can suggest to start with 
> other more used extensions? Most of our string and array functions don't 
> have enough testcases either.
> 
> regards,
> Derick
> 
> -- 
> Derick Rethans
> http://derickrethans.nl | http://ez.no | http://xdebug.org
-- 
  Rathna N
  nrathna@fastmail.fm

-- 
http://www.fastmail.fm - mmm... Fastmail...

---

## #18194 — Rathna N — 2005-08-17T12:53:02+00:00

URL: https://externals.io/message/17691#18194 · In reply to: #17692

Comments incorporated and pls do find the cat of the patches and test
report at the below links.

http://www.geocities.com/rs81099/calendertests.txt 
- Contains the cat of test scripts patches.

http://www.geocities.com/rs81099/phpCalendartestRep.txt
- contains TesReport on SuSe 9.x

If incase any issues with the above testscript files, zip can be found
at
http://www.geocities.com/rs81099/Caltestspatch.zip

This week I'm planning to work on strings.

Pls do pass on if u have any feedback.

Regards,
Rathna.
-- 
  Rathna N
  nrathna@fastmail.fm

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service
