NSinopoli/VisualPHPUnit — Issue #22: config branch issue with the xml configuration
Author: fgiasson
Created: 2011-11-11 14:37:21+00:00
State: open

After some debugging (I am really not familiar with the PHPUnit API, so I may have missed other issues), I figured out that you are missing the creation of the test suite for the XML configuration.

In VPU.php, on line #753:

$runner->doRun($suite, $phpunit_config);

Should be replaced by:

$runner->doRun($config->getTestSuiteConfiguration(), $phpunit_config);

Otherwise it runs an empty, default suite.

Since I am not familiar with the PHPUnit API, I am wondering if you are also missing a few calls such as:

getLoggingConfiguration()
getGroupConfiguration()
getFilterConfiguration()
getPHPConfiguration()

So that all the sections of the XML configuration file get properly added to the "run()" call.

With this fix, the testsuites section of the XML configuration file will be properly working with VisualPHPUnit.