Ejemplos y material para el testing hacklab de AgileAragon http://agile-aragon.org/2013/02/25/testing-hacklab-en-marzo/
Algunas herramientas que vamos a utilizar:
Para los test unitarios
http://www.phpunit.de/
usaremos también el generador de esqueletos de test
phpunit-skelgen
Imprescindible... olvidate de los "var_dump($var)" ;)
http://xdebug.org/
Comprueba la sintaxis de nuestro código
Comprueba que nuestro código se ajusta a los estándares.
Detector de código basura y posibles bugs
http://phpmd.org/
Para realizar métricas y analizar la estructura del proyecto
https://github.com/sebastianbergmann/phploc
Jenkins http://jenkins-ci.org/
Esqueleto jenkins para proyectos php http://jenkins-php.org/
Otra opción:
Servidor de integración continua online http://travis-ci.org
Este proyecto testeado por Travis (ver fichero .travis.yml) https://travis-ci.org/francho/TestingLab-php
Para automatizar todos los tests
http://ant.apache.org/