PHPUnit print tests execution time
问题 is there a way to print the execution time of each test with PHPUnit? 回答1: You can implement your own test runner, for example by extending PHPUnit_TextUI_TestRunner and make it collect and print run times. 回答2: To add some more ways: You can write a custom Test listener and add it to the XML file. In that listener you can access the $testResult->time() . Some lines in your phpunit.xml and a 10 line PHP class. Not too much hassle. class SimpleTestListener implements PHPUnit_Framework