christophgockel/phpunit-loveprinter

为开发者提供更多关爱!

dev-master 2013-09-09 20:23 UTC

This package is not auto-updated.

Last update: 2024-09-23 14:19:40 UTC


README

为开发者提供更多关爱!

示例

Unit Tests with Love

要求

爱之打印机与PHP 5.3+和PHPUnit 3.7+兼容。

安装

推荐使用Composer安装爱之打印机。创建一个composer.json文件(或编辑现有的文件)。然后添加以下依赖项

{
    "require-dev": {
        "christophgockel/phpunit-loveprinter": "*"
    }
}

最后运行php composer.phar install --dev进行安装。

安装完成后,需要在您的phpunit.xml文件中添加以下属性(添加到<phpunit>元素中)

printerFile="vendor/christophgockel/phpunit-loveprinter/src/ChristophGockel/PHPUnit/LovePrinter.php"
printerClass="ChristophGockel\PHPunit\LovePrinter"

致谢

爱之打印机的打包受到了whatthejeff/fab-phpunit-resultprinter的强烈启发。

许可证

爱之打印机遵循MIT许可证

<3