Have the PhpUnit plugin reports an explicit error when no test are configured.

Closes #711
This commit is contained in:
Guillaume Perréal 2014-12-17 16:53:47 +01:00 committed by Dan Cryer
parent f37c3450e3
commit 0beb77113a

View file

@ -142,6 +142,11 @@ class PhpUnit implements PHPCI\Plugin, PHPCI\ZeroConfigPlugin
*/
public function execute()
{
if (empty($this->xmlConfigFile) && empty($this->directory)) {
$this->phpci->logFailure('Neither configuration file nor test directory found.');
return false;
}
$success = true;
$this->phpci->logExecOutput(false);