Advanced programming tools for PHP
For my new web project (whose temporary name is SmartyPot) I plan to use a strict way of coding in PHP. That is to say: unit testing, logging, debugging and profiling.
For unit testing, we can rely on two packages:
- PHPUnit from the PEAR repository, a regression testing framework for unit tests;
- the old PhpUnit (last released 20020327), which claims to be based on the JUnit framework for Java.
But you can also choose the really impressive Simple Test PHP Unit Test Framework, which is able to use the aforementioned unit testing packages. This framework does not only offer to build unit test cases, but also web test cases and it can create mock objects.
For logging, we have Log4php, a port of log4j, the most popular Java logging framework, both project being part of the Logging Services Project at Apache.
For documentation, two alternatives:
- the old PHPDoc, adaptation of Javadoc to the PHP world (latest release from 20001203);
- the newer PhpDocumentor.
For debugging and profiling:
Posted by Jean-Philippe on December 28, 2004 at 12:56 AM 0 Comments, 929 TrackBacks
Filed in PHP
Post your own.
Comments