Merge pull request #4856 from tractorcow/pulls/4.0/robust-test-listener

BUG Fix SapphireTestReporter erroring
This commit is contained in:
Daniel Hensby 2016-01-26 23:08:55 +00:00
commit 0b8a65d1e2
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,9 @@
<?php
if(!class_exists('SapphireTestReporter')) {
return;
}
/**
* Test reporter optimised for CLI (ie, plain-text) output
*

View File

@ -1,9 +1,7 @@
<?php
if(!class_exists('PHPUnit_Framework_TestResult', false)) {
require_once 'PHPUnit/Framework/TestResult.php';
}
if(!class_exists('PHPUnit_Framework_TestListener', false)) {
require_once 'PHPUnit/Framework/TestListener.php';
if(!interface_exists('PHPUnit_Framework_TestListener')) {
return;
}
/**#@+