|
1 | 1 | # PHPUnit Skeleton # |
2 | 2 | _Get up and running with PHPUnit testing easily for your project_ |
3 | 3 |
|
4 | | -Are you frustrated with trying to install and configure PHPUnit? |
| 4 | +* Are you frustrated with trying to install and configure PHPUnit? |
| 5 | +* Are you wishing you could use just one command and BANG it was all done for you and you could get on with writing your beautiful unit tests? |
| 6 | +* Are you having sleepless nights or sleepy afternoons? |
5 | 7 |
|
6 | | -Are you wishing you could use just one command and BANG it was all done for you and you could get on with writing your beautiful unit tests? |
| 8 | +Well, I'm happy to let you know that you just need to `clone` this repo and all your problems will be whisked away (apart from the last one, perhaps). |
7 | 9 |
|
8 | | -Are you having sleepless nights or sleepy afternoons? |
9 | | - |
10 | | -Well, I\'m happy to let you know that you just need to `clone` this repo and all your problems will be whisked away (apart from the last one, perhaps). |
11 | | - |
12 | | -We have also included a sample class so you can learn a few tricks in how to use PHPUnit in your projects! |
13 | | - |
14 | | -HAPPY UNIT TESTING!!! |
| 10 | +We have also included a sample PHP class so you can learn a few tricks in how to use PHPUnit in your projects! |
15 | 11 |
|
16 | 12 | # Simple-tastic 3 Step Installation # |
17 | | -* Download the repo with `git clone https://github.com/jasdeepkhalsa/tweet-counter.git` |
18 | | -* Run `php composer.phar self-update` |
19 | | -* Run `php composer.phar install` |
| 13 | +* Open a Terminal. Download the repo with `git clone https://github.com/jasdeepkhalsa/tweet-counter.git` |
| 14 | +* `cd` into where you downloaded your repo and run `php composer.phar self-update` |
| 15 | +* Now, run `php composer.phar update` |
20 | 16 |
|
21 | 17 | ## Run PHPUnit ## |
22 | 18 | * Open up a terminal |
23 | 19 | * `cd` to your project root |
24 | | -* Type `phpunit` and...magic! Tests (should) be running! |
| 20 | +* Type `./vendor/bin/phpunit` and...magic! Tests (should) now be running! |
| 21 | + |
| 22 | +You should see something like... |
| 23 | + |
| 24 | + PHPUnit 3.7.19 by Sebastian Bergmann. |
| 25 | + |
| 26 | + Configuration read from /(directory)/phpunit-skeleton/phpunit.xml |
| 27 | + |
| 28 | + .... |
| 29 | + |
| 30 | + Time: 0 seconds, Memory: 3.00Mb |
| 31 | + |
| 32 | + OK (4 tests, 4 assertions) |
25 | 33 |
|
26 | 34 | # Credits # |
27 | 35 | * Me and my awesomely laborious efforts in getting to grips with PHPUnit testing |
28 | | -* Constant support from PHP Guru Jujhar Singh from [Buto](http://get.buto.tv/) who also inspired the PHPUnit class style in the examples |
| 36 | +* Constant support from PHP Guru Jujhar Singh from [Buto](http://get.buto.tv/) who also inspired the test case style in the examples |
29 | 37 | * Class examples inspired from video by Jeffrey Way from [Nettuts+](http://net.tutsplus.com/tutorials/php/better-workflow-in-php-with-composer-namespacing-and-phpunit/) |
0 commit comments