Etienne Kneuss has finally finished his phpt generator. So if you need a basic phpt test for a function (or the entire PHP library) - don't write it. Be lazy, click a few buttons and back to chatting on IRC you go.

He writes:

I'm happy to announce the availability of a phpt files generator on http://doc.php.net.

This script is ment to scan the php manual for examples, which can then be used to generate phpt files. Those phpt files will help to:

  1. spot mistakes in examples
  2. extend the code coverage analysis