芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/phpunit/phpunit/src/Logging/TestDox/HtmlRenderer.php
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Logging\TestDox; use function sprintf; /** * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class HtmlRenderer { /** * @var string */ private const PAGE_HEADER = <<<'EOT'
Test Documentation
EOT; /** * @var string */ private const CLASS_HEADER = <<<'EOT'
%s
EOT; /** * @var string */ private const CLASS_FOOTER = <<<'EOT'
EOT; /** * @var string */ private const PAGE_FOOTER = <<<'EOT' EOT; /** * @psalm-param array
$tests */ public function render(array $tests): string { $buffer = self::PAGE_HEADER; foreach ($tests as $prettifiedClassName => $_tests) { $buffer .= sprintf( self::CLASS_HEADER, $prettifiedClassName ); foreach ($_tests as $test) { $buffer .= sprintf( "
%s
\n", $test->status()->isSuccess() ? 'success' : 'defect', $test->test()->testDox()->prettifiedMethodName() ); } $buffer .= self::CLASS_FOOTER; } return $buffer . self::PAGE_FOOTER; } }