use real array for xml @attibutes

This commit is contained in:
James 2020-02-15 13:43:21 +00:00
parent 5289eaedaf
commit e2e428b28c

View File

@ -32,8 +32,8 @@ final class PostFailedTests{
private function process($item){ private function process($item){
if(isset($item->testcase)){ if(isset($item->testcase)){
foreach($item->testcase as $testcase) { foreach($item->testcase as $testcase) {
$att=$testcase->attributes(); $att = current($testcase->attributes());
$name=$testcase->attributes()->class[0].'::'.$testcase->attributes()->name[0]; $name=$att['class'].'::'.$att['name'];
$fail=false; $fail=false;
foreach($testcase as $k=>$v){ foreach($testcase as $k=>$v){
$this->fail($name,$att,$k,$v); $this->fail($name,$att,$k,$v);