If setUpBeforeClass() fails, test failures are hidden in PHPUnit's JUnit XML output
- by Adam Monsen
If setUpBeforeClass() throws an exception, no failures or errors are reported in the PHPUnit's JUnit XML output. Why?
Example test class:
<?php
class Test extends PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass() {
throw new \Exception('masks all failures in xml output');
}
public function testFoo() {
…