https://github.com/stjohnjohnson/prettylistener-phpunit
Better Output for PHPUnit tests
https://github.com/stjohnjohnson/prettylistener-phpunit
Last synced: about 1 year ago
JSON representation
Better Output for PHPUnit tests
- Host: GitHub
- URL: https://github.com/stjohnjohnson/prettylistener-phpunit
- Owner: stjohnjohnson
- Created: 2012-02-29T18:18:54.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-29T19:36:15.000Z (over 14 years ago)
- Last Synced: 2025-03-23T18:49:35.269Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PrettyListener (PHPUnit)
========================
This is a really simple Listener for PHPUnit that presents a much better view/progress of tests.
Usage
-----
To leverage this class, just include it at the bottom of your `phpunit.xml` file:
```xml
....
```
Example
-------
This is using the Test Suite from my [Scrabbler bot](https://github.com/stjohnjohnson/scrabbler-bot).
```bash
$ phpunit
PHPUnit 3.6.4 by Sebastian Bergmann.
Configuration read from /tmp/scrabbler/phpunit.xml
Scrabbler Bot
Board
Initialized .
SetGet .
Flipped .
MoveAt .
Output .
Anchors .
CrossChecks .
LetterPoints .
WalkPlay .
ValidMove .
TopDownScore .
Game
Construct .
Log .
Command .
Execute .
Trades .
SimulateTrader .
SimulateBadMove .
SimulateBadTrade .
SimulateSimple .
SimulateOutOfLetters .
SimulateTradeTooMuch .
Lexicon
AddValidWord .
AddInvalidWord .
FromFile .
NodeAt .
FindWordsEmpty .
FindWordsComplex .
FindWordsSingle .
FindWordsEdge .
Move
FromWord .
Position .
ToString .
FromString .
AssignScore .
Player
Construct .
ChooseAction .
HighestLowestScore .
MostWords .
MostLeastLetters .
LongestShortestWord .
Time: 2 seconds, Memory: 15.75Mb
OK (41 tests, 387 assertions)
```