Skip to content

Commit 5dcf0f4

Browse files
author
Mostafa Kamal
committed
laravel test
1 parent 03fbc25 commit 5dcf0f4

File tree

1 file changed

+26
-0
lines changed
  • web-developer/laravel/tips/testing

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
## testing
3+
4+
# configure xml file
5+
6+
```bash
7+
# bash cli
8+
./vendor/bin/phpunit --configuration /path/to/laravels/phpunit.xml
9+
```
10+
11+
# run
12+
13+
```bash
14+
# all file
15+
./vendor/bin/phpunit
16+
# specific file
17+
./vendor/bin/phpunit tests/Unit/AppTest.php
18+
```
19+
20+
# optional
21+
22+
* global install
23+
24+
```bash
25+
composer global require phpunit/phpunit
26+
```

0 commit comments

Comments
 (0)