How to find the reason for a risky test in PHPUnit ?
Recently I started phpUnit testing, and I found some of the test are flagging as risky. Most of the time I able figure bout reason but some time it very time consuming and also there isn’t any messages from PHPUnit.
PHPUnit 4.4.5 by Sebastian Bergmann. Configuration read from phpunit.xml.dist R.................R.R..R Time: 14,17 seconds, Memory: 52,50Mb OK, but incomplete, skipped, or risky tests! Tests: 24, Assertions: 52, Risky: 4.
Finally I found a soultion and it is very simple( How I can forgot about -v flag !! )
phpunit -v|--verbose Output more verbose information.
Stay tuned, more testing related post probably writing 🙂