This post originated from an RSS feed registered with PHP Buzz
by Sebastian Bergmann.
Original Post: Graphical Logging in PHPUnit 3
Feed Title: Sebastian Bergmann
Feed URL: http://sebastian-bergmann.de/
Feed Description: Geek by nature, PHP by choice.
Another new feature of the next version of PHPUnit is the ability to generate a graphical visualization of the test execution using GraphViz.
This graph, for example, shows the graphical visualization for the execution of the tests declared in the MoneyTest sample that comes with PHPUnit.
For the purposes of this example, the MoneyTest code was changed so that the testSimpleSubstract test fails. As you can see in the graph, this results in the test's node being drawn red. This propagates to the next level in test hierarchy, which in this case is the MoneyTest test suite.