mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4856 from tractorcow/pulls/4.0/robust-test-listener
BUG Fix SapphireTestReporter erroring
This commit is contained in:
commit
0b8a65d1e2
@ -1,4 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(!class_exists('SapphireTestReporter')) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test reporter optimised for CLI (ie, plain-text) output
|
||||
*
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**#@+
|
||||
|
Loading…
Reference in New Issue
Block a user