芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/vendor/phpunit/phpunit/src/Util/TestDox/HtmlResultPrinter.php
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Util\TestDox; use function sprintf; /** * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class HtmlResultPrinter extends ResultPrinter { /** * @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; /** * Handler for 'start run' event. */ protected function startRun(): void { $this->write(self::PAGE_HEADER); } /** * Handler for 'start class' event. */ protected function startClass(string $name): void { $this->write( sprintf( self::CLASS_HEADER, $name, $this->currentTestClassPrettified ) ); } /** * Handler for 'on test' event. */ protected function onTest($name, bool $success = true): void { $this->write( sprintf( "
%s %s
\n", $success ? '#555753' : '#ef2929', $success ? '✓' : '❌', $name ) ); } /** * Handler for 'end class' event. */ protected function endClass(string $name): void { $this->write(self::CLASS_FOOTER); } /** * Handler for 'end run' event. */ protected function endRun(): void { $this->write(self::PAGE_FOOTER); } }