/var/www/flurhymez/vendor/phpunit/phpunit/src/Util
NameSizeModeActions
Annotation/-0755rm
Log/-0755rm
PHP/-0755rm
TestDox/-0755rm
Xml/-0755rm
Blacklist.php9440644editdlrm
Color.php43030644editdlrm
ErrorHandler.php40570644editdlrm
Exception.php4790644editdlrm
ExcludeList.php66540644editdlrm
FileLoader.php25000644editdlrm
Filesystem.php10690644editdlrm
Filter.php34230644editdlrm
GlobalState.php53510644editdlrm
InvalidDataSetException.php4930644editdlrm
Json.php29180644editdlrm
Printer.php27170644editdlrm
RegularExpression.php7620644editdlrm
Test.php257260644editdlrm
TextTestListRenderer.php14590644editdlrm
Type.php11790644editdlrm
VersionComparisonOperator.php14910644editdlrm
XdebugFilterScriptGenerator.php18290644editdlrm
Xml.php55130644editdlrm
XmlTestListRenderer.php27080644editdlrm
Edit: /var/www/flurhymez/vendor/phpunit/phpunit/src/Util/XmlTestListRenderer.php (2708B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Util; use function get_class; use function implode; use function str_replace; use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestSuite; use PHPUnit\Runner\PhptTestCase; use RecursiveIteratorIterator; use XMLWriter; /** * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class XmlTestListRenderer { /** * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function render(TestSuite $suite): string { $writer = new XMLWriter; $writer->openMemory(); $writer->setIndent(true); $writer->startDocument(); $writer->startElement('tests'); $currentTestCase = null; foreach (new RecursiveIteratorIterator($suite->getIterator()) as $test) { if ($test instanceof TestCase) { if (get_class($test) !== $currentTestCase) { if ($currentTestCase !== null) { $writer->endElement(); } $writer->startElement('testCaseClass'); $writer->writeAttribute('name', get_class($test)); $currentTestCase = get_class($test); } $writer->startElement('testCaseMethod'); $writer->writeAttribute('name', $test->getName(false)); $writer->writeAttribute('groups', implode(',', $test->getGroups())); if (!empty($test->getDataSetAsString(false))) { $writer->writeAttribute( 'dataSet', str_replace( ' with data set ', '', $test->getDataSetAsString(false) ) ); } $writer->endElement(); } elseif ($test instanceof PhptTestCase) { if ($currentTestCase !== null) { $writer->endElement(); $currentTestCase = null; } $writer->startElement('phptFile'); $writer->writeAttribute('path', $test->getName()); $writer->endElement(); } } if ($currentTestCase !== null) { $writer->endElement(); } $writer->endElement(); return $writer->outputMemory(); } }