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:
Ingo Schommer 2008-10-09 15:14:31 +00:00
parent eb5cd150d8
commit 950560e188

View File

@ -55,7 +55,9 @@ class CliTestReporter extends SapphireTestReporter {
$filteredTrace = array(); $filteredTrace = array();
$ignoredClasses = array('TestRunner'); $ignoredClasses = array('TestRunner');
foreach($test['trace'] as $item) { 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))) { && (!isset($item['class']) || !in_array($item['class'], $ignoredClasses))) {
$filteredTrace[] = $item; $filteredTrace[] = $item;