{"id":13828613,"url":"https://github.com/mikeerickson/phpunit-pretty-result-printer","last_synced_at":"2025-05-14T09:07:00.132Z","repository":{"id":40467907,"uuid":"97530740","full_name":"mikeerickson/phpunit-pretty-result-printer","owner":"mikeerickson","description":"PHPUnit Pretty Result Printer -- make your PHPUnit tests look pretty!","archived":false,"fork":false,"pushed_at":"2024-04-12T01:58:31.000Z","size":709,"stargazers_count":1197,"open_issues_count":13,"forks_count":72,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-14T09:06:23.209Z","etag":null,"topics":["hacktoberfest","hacktoberfest2020"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikeerickson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-17T23:21:46.000Z","updated_at":"2025-04-19T06:54:28.000Z","dependencies_parsed_at":"2024-06-18T10:45:59.183Z","dependency_job_id":"b6995eda-e244-40e4-9cdc-7f71c0f2bc69","html_url":"https://github.com/mikeerickson/phpunit-pretty-result-printer","commit_stats":{"total_commits":267,"total_committers":24,"mean_commits":11.125,"dds":"0.48689138576779023","last_synced_commit":"102d1c145d1b3ac80a797ad9495937a332fb820c"},"previous_names":[],"tags_count":114,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fphpunit-pretty-result-printer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fphpunit-pretty-result-printer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fphpunit-pretty-result-printer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeerickson%2Fphpunit-pretty-result-printer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeerickson","download_url":"https://codeload.github.com/mikeerickson/phpunit-pretty-result-printer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","hacktoberfest2020"],"created_at":"2024-08-04T09:02:55.087Z","updated_at":"2025-05-14T09:07:00.111Z","avatar_url":"https://github.com/mikeerickson.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# CodeDungeon PHPUnit Pretty Result Printer\n\nVersion 0.29.2\nExtend the default PHPUnit Result Printer with a modern, pretty printer!\n\n---\n\n📦 [PHPUnit Pretty Result Printer -- Packagist](https://packagist.org/packages/codedungeon/phpunit-result-printer)\n\n## Installation\n\nInstallation provided via composer and can be done with the following command, the current version requires PHP 7.1 or greater:\n\n```bash\n\u003e composer require --dev codedungeon/phpunit-result-printer\n```\n\n### Upgrading to \u003e= 0.29.x\n\nIf you are upgrading from previous verison and have published `phpunit-printer.yml` locally, make sure add the following to the options section\n\n```yml\n  ...\n  cd-printer-dont-format-classname: false\n  ...\n```\n\n### Execute Initialization Script (Optional)\n\nThe following steps are optional, but will provide zero configuration for implementing **phpunit-pretty-result-printer**\n\n- Adds `printerClass=\"Codedungeon\\PHPUnitPrettyResultPrinter\\Printer\"` to `phpunit.xml` file\n- Copies default `phpunit-printer.yml` to project root for easier customization\n\n```bash\n\u003e php ./vendor/codedungeon/phpunit-result-printer/src/init.php\n```\n\n#### Manual Configuration\n\nAlternately, if you wish to configure **phpunit-pretty-result-printer** manually, you will need to update your `phpunit.xml` file as follows\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n  \u003cphpunit printerClass=\"Codedungeon\\PHPUnitPrettyResultPrinter\\Printer\"\u003e\n    // ....\n  \u003c/phpunit\u003e\n```\n\nOr from Command-Line:\n\n```bash\n \u003e phpunit --printer=Codedungeon\\\\PHPUnitPrettyResultPrinter\\\\Printer\n```\n\n### Laravel 5.3 with PHP version 7.0.x\n\nIf you are using PHP 7.0.x, you will need to use a compatible version of PHPUnit Result Printer (version 0.8.x)\n\n```bash\n\u003e composer require --dev codedungeon/phpunit-result-printer:^0.8\n```\n\n### AnyBar Integration\n\nIf you have AnyBar installed, it will be enabled by default. You can disable using `cd-printer-anybar-enabled` option (see below)\n\n[https://github.com/tonsky/AnyBar](https://github.com/tonsky/AnyBar)\n\n**Anybar is off by default, thus you will need to set the `cd-printer-anybar` option in the `phpunit-printer.yml` to `true` if you wish to use Anybar.\n\nThis has been done to address issues with using CI tools such as travis (please see [Issue 122](https://github.com/mikeerickson/phpunit-pretty-result-printer/issues/122) for details) **\n\n_NOTE: AnyBar is only available with PHPUnit 7.1 or greater.\nIf you need support for previous versions, please let us know. We are slowly deprecating versions before 7.1._\n\n### Configuration Options\n\n- Create a `phpunit-printer.yml` file in your application root to override default (or anywhere use up the parent tree. It will search recursively up the tree until a configuration file is found. If not found, default configuration will be used).\n  The following options are available (along with their default values):\n\n#### Options\n\n| **Property Name**           | **Default** | **Description**                                                      |\n| --------------------------- | ----------- | -------------------------------------------------------------------- |\n| `cd-printer-hide-class`     | false       | Hides the display of the test class name                             |\n| `cd-printer-simple-output`  | false       | Uses the default PHPUnit markers (but still uses Printer)            |\n| `cd-printer-show-config`    | true        | Show path to used configuration file                                 |\n| `cd-printer-hide-namespace` | true        | Hide test class namespaces (will only show print class name)         |\n| `cd-printer-anybar`         | true        | Enable AnyBar (if anybar is not installed, settings will be ignored) |\n| `cd-printer-anybar-port`    | 1738        | Define AnyBar port number                                            |\n| `cd-printer-dont-format-classname`| false |Show entire classname*\n\n- If `cd-printer-hide-namespace` set to `false` and `cd-printer-dont-format-classname` to `false` will attempt to keep everyting formatted\n- If `cd-printer-dont-format-classname` nothing will be formatted and full classname will be displayed\n\n#### Markers\n\nYou can customize the markers which are used for `success`, `fail`, `error`, `skipped`, `incomplete` by modifying the `phpunit-printer.yml` file.\n\n| **Marker**    | **Value** \\* |\n| ------------- | ------------ |\n| cd-pass       | \"✔ \"         |\n| cd-fail       | \"✖ \"         |\n| cd-error      | \"⚈ \"         |\n| cd-skipped    | \"→ \"         |\n| cd-incomplete | \"∅ \"         |\n| cd-risky      | \"⌽ \"         |\n\n_\\* Notice space after each marker. This makes the output a little more visually appealing, thus keep that in mind when creating your own custom markers_\n\n## License\n\nCopyright \u0026copy; 2017-2021 Mike Erickson\nReleased under the MIT license\n\n## Credits\n\nphpunit-result-printer written by Mike Erickson\n\nE-Mail: [codedungeon@gmail.com](mailto:codedungeon@gmail.com)\n\nTwitter: [@codedungeon](http://twitter.com/codedungeon)\n\nWebsite: [https://github.com/mikeerickson](https://github.com/mikeerickson)\n\n### Screenshot\n\n![Screenshot](https://raw.githubusercontent.com/mikeerickson/phpunit-pretty-result-printer/master/sample.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeerickson%2Fphpunit-pretty-result-printer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeerickson%2Fphpunit-pretty-result-printer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeerickson%2Fphpunit-pretty-result-printer/lists"}