Skip to content

Commit 5f2a3cc

Browse files
authored
Update README.md
1 parent 710ce25 commit 5f2a3cc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,33 @@
33
[![Build Status](https://travis-ci.org/jphp-group/tester.svg?branch=master)](https://travis-ci.org/jphp-group/tester)
44

55
Unit Testing Framework for JPPM
6+
7+
# How to use?
8+
9+
1. Add `tester` dependency to `devDeps`.
10+
11+
```
12+
jppm add tester -dev
13+
```
14+
15+
2. Create `tests` directory in root of your package dir.
16+
3. Create your first test class, e.g:
17+
18+
```php
19+
use tester\{TestCase, Assert};
20+
21+
class SimpleTest extends TestCase
22+
{
23+
function testFeature()
24+
{
25+
$actual = "expected";
26+
27+
Assert::isEqual("expected", $actual);
28+
}
29+
}
30+
```
31+
32+
4. Run your tests.
33+
```bash
34+
jppm test
35+
```

0 commit comments

Comments
 (0)