/var/www/vhosts/ihelp.ro/httpdocs/vendor/phpunit/phpunit/src/Util
NameSizeModeActions
Annotation/-0755rm
Log/-0755rm
PHP/-0755rm
TestDox/-0755rm
Xml/-0755rm
Blacklist.php9440644editdlrm
Cloner.php7510644editdlrm
Color.php43040644editdlrm
ErrorHandler.php40580644editdlrm
Exception.php4790644editdlrm
ExcludeList.php57710644editdlrm
FileLoader.php25120644editdlrm
Filesystem.php10700644editdlrm
Filter.php34250644editdlrm
GlobalState.php88590644editdlrm
InvalidDataSetException.php4930644editdlrm
Json.php29190644editdlrm
Printer.php27210644editdlrm
Reflection.php16780644editdlrm
RegularExpression.php7630644editdlrm
Test.php257090644editdlrm
TextTestListRenderer.php14610644editdlrm
Type.php9270644editdlrm
VersionComparisonOperator.php14960644editdlrm
XdebugFilterScriptGenerator.php18320644editdlrm
Xml.php55100644editdlrm
XmlTestListRenderer.php27560644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/phpunit/phpunit/src/Util/XmlTestListRenderer.php (2756B)
* * 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('1.0', 'UTF-8'); $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(); $writer->endDocument(); return $writer->outputMemory(); } }