Skip to content

Commit cd0d384

Browse files
author
jasdeepkhalsa
committed
Updated readme.md
1 parent fdb2b95 commit cd0d384

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor/
22
composer.lock
3+
.project

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
11
# PHPUnit Skeleton #
22
_Get up and running with PHPUnit testing easily for your project_
33

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?
57

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).
79

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!
1511

1612
# 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`
2016

2117
## Run PHPUnit ##
2218
* Open up a terminal
2319
* `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)
2533

2634
# Credits #
2735
* 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
2937
* 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

Comments
 (0)