mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed PHP notice in CLITestReporter
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64006 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
eb5cd150d8
commit
950560e188
@ -55,7 +55,9 @@ class CliTestReporter extends SapphireTestReporter {
|
||||
$filteredTrace = array();
|
||||
$ignoredClasses = array('TestRunner');
|
||||
foreach($test['trace'] as $item) {
|
||||
if(strpos($item['file'], 'PHPUnit/Framework') === false
|
||||
if(
|
||||
isset($item['file'])
|
||||
&& strpos($item['file'], 'PHPUnit/Framework') === false
|
||||
&& (!isset($item['class']) || !in_array($item['class'], $ignoredClasses))) {
|
||||
|
||||
$filteredTrace[] = $item;
|
||||
|
Loading…
Reference in New Issue
Block a user