src/Logging/JUnit/Writer.php
protected function getSuiteRootAttributes(array $suites)
    {
        return array_reduce($suites, function (array $result, TestSuite $suite): array {
            $result['tests'] += $suite->tests;
            $result['assertions'] += $suite->assertions;
            $result['failures'] += $suite->failures;
            $result['skipped'] += $suite->skipped;
            $result['errors'] += $suite->errors;
            $result['time'] += $suite->time;

            return $result;
        }, array_merge(['name' => $this->name], self::$defaultSuite));
    }
protected function getSuiteRootAttributes(array $suites)
    {
        return array_reduce($suites, function (array $result, TestSuite $suite): array {
            $result['tests'] += $suite->tests;
            $result['assertions'] += $suite->assertions;
            $result['failures'] += $suite->failures;
            $result['skipped'] += $suite->skipped;
            $result['errors'] += $suite->errors;
            $result['time'] += $suite->time;

            return $result;
        }, array_merge(['name' => $this->name], self::$defaultSuite));
    }
protected function getSuiteRootAttributes ( array $ suites ) { return array_reduce ( $ suites , function ( array $ result , TestSuite $ suite ) : array { $ result [ 'tests' ] += $ suite -> tests ; $ result [ 'assertions' ] += $ suite -> assertions ; $ result [ 'failures' ] += $ suite -> failures ; $ result [ 'skipped' ] += $ suite -> skipped ; $ result [ 'errors' ] += $ suite -> errors ; $ result [ 'time' ] += $ suite -> time ; return $ result ; } , array_merge ( [ 'name' => $ this -> name ] , self :: $ defaultSuite ) ) ; }
Get the attributes used on the root testsuite
node.

@param $suites

@return mixed
Get the attributes used on the root testsuite node .