Skip to content

Commit 2d34c15

Browse files
Bootstraping phpunit
1 parent 8052d47 commit 2d34c15

File tree

11 files changed

+1231
-8
lines changed

11 files changed

+1231
-8
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ The target system needs to be Ubuntu 14.04. Clone the repository, for example in
5454

5555
And be ready to provide the path for your SSL certificates csr and key files.
5656

57+
## Testing
58+
59+
To run our test suite:
60+
61+
```
62+
hhvm vendor/phpunit/phpunit/phpunit tests/ExampleTest.php
63+
```
64+
5765
## Troubleshooting
5866

5967
### `vendor` folder wasn't created when running `./extra/provisioning.sh`

composer.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
2-
"name": "facebook-ctf",
2+
"name": "fbctf/composer.json",
33
"description": "Facebook CTF platform",
4+
"license": "CC-BY-NC-4.0",
45
"require": {
56
"facebook/xhp-lib": "2.x"
67
},
8+
"require-dev": {
9+
"phpunit/phpunit": "5.3.*",
10+
"phpunit/php-invoker": "1.1.*"
11+
},
712
"autoload": {
813
"classmap": ["src/"],
914
"files": ["src/Utils.php"]

0 commit comments

Comments
 (0)