-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
37 lines (25 loc) · 864 Bytes
/
README
File metadata and controls
37 lines (25 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
README
======
This symfony sandbox should demonstrate the usage and handling of the sfPHPUnit2Plugin.
More to come soon ...
Steps:
-----------------
# generate and call some unit tests
./symfony phpunit:generate-unit Sprinter
./symfony phpunit:generate-configuration
phpunit test/phpunit/unit/SprinterTest.php
./symfony phpunit:generate-unit Race
phpunit test/phpunit/unit/RaceTest.php
./symfony phpunit:generate-unit --dir=model ContestantTable
phpunit test/phpunit/unit/model/ContestantTableTest.php
# run all unit tests
phpunit test/phpunit/unit
# geneated and called some functional tests
./symfony phpunit:generate-functional frontend contestant
./symfony phpunit:generate-functional backend contestant
# run all functional tests
phpunit test/phpunit/functional
# test everything
phpunit test/phpunit
# should return
# OK (5 tests, 213 assertions)