From 3b11f3555426a50664e130148fa37e18b8098e28 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Jan 2006 04:37:22 +0000 Subject: --- tests/FunctionalTests/selenium/php/results.php | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'tests/FunctionalTests/selenium/php/results.php') diff --git a/tests/FunctionalTests/selenium/php/results.php b/tests/FunctionalTests/selenium/php/results.php index 2ad9c56b..77dab43b 100644 --- a/tests/FunctionalTests/selenium/php/results.php +++ b/tests/FunctionalTests/selenium/php/results.php @@ -45,9 +45,9 @@ class SeleniumTestResult $case->commands = $test['commands']; for($i = 0; $i < count($case->commands); $i++) { - $trace = $case->commands[$i]['trace']; - $trace = html_entity_decode($trace); - $case->commands[$i]['trace'] = @unserialize($trace); + //$trace = $case->commands[$i]['trace']; + //$trace = html_entity_decode($trace); + //$case->commands[$i]['trace'] = @unserialize($trace); if($case->commands[$i]['result'] == 'failed') { $case->result = 'failed'; @@ -126,33 +126,27 @@ EOD; foreach($test->suites as $suite) { foreach($suite->failures as $error) - $contents .= $this->getErrorMsg($error, $count++); + $contents .= $this->getErrorMsg($suite, $error, $count++); } return $contents; } - protected function getErrorMsg($info, $count) + protected function getErrorMsg($suite, $info, $count) { - $args = array(); - foreach($info['trace']['args'] as $arg) - $args[] = "'{$arg}'"; - $args = implode(",", $args); $parity = $count%2==0 ? 'even' : 'odd'; + $command = explode("|",$info['command']); $msg = << #{$count}. "{$info['msg']}" in - {$info['trace']['class']}::{$info['trace']['function']}({$args}) - - near - - {$info['trace']['file']}:({$info['trace']['line']}) + {$suite->name}::{$command[1]}('{$command[2]}'); EOD; + return $msg; } -- cgit v1.2.3