破窗器/测试打印机

此包已被废弃且不再维护。未建议替代包。

在测试运行时使控制台输出变得有用。

3.0.2 2018-04-12 13:16 UTC

This package is auto-updated.

Last update: 2023-09-10 23:41:26 UTC


README

Defenestrator Test Printer

与其看到一串点和字母,不如在测试运行时获取一些有用的信息。

安装

使用composer安装Defenestrator测试结果打印机

composer require --dev defenestrator/test-printer

您也可以在composer.json中包含该项目

	{
		"require-dev": {
			"defenestrator/test-printer": ">=3.0.0"
		}
	}

如果您不使用composer,您可以直接下载并保存TestResultPrinter.php到您想要的任何位置。您真的应该使用composer,混蛋。

使用

要使用TestResultPrinter类,请在phpunit.xml的根<phpunit>元素中指定它。

<phpunit
    colors="true"
    printerClass="Defenestrator\TestResultPrinter"
    >
    ...
</phpunit>