You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,12 +23,12 @@ Pull requests should be based off the `develop` branch, which represents the cur
23
23
24
24
To create a new feature branch:
25
25
26
-
```bash
26
+
```sh
27
27
# Start on develop, making sure it's up-to-date
28
-
$ git checkout develop && git pull
28
+
git checkout develop && git pull;
29
29
30
30
# Create a new branch for your feature
31
-
$ git checkout -b feature/my-cool-new-feature
31
+
git checkout -b feature/my-cool-new-feature
32
32
```
33
33
34
34
When submitting a new pull request, your `feature/my-cool-new-feature` should be compared against `develop`.
@@ -38,13 +38,19 @@ When submitting a new pull request, your `feature/my-cool-new-feature` should be
38
38
39
39
This project uses [the PSR-2 coding standards](http://www.php-fig.org/psr/psr-2/).
40
40
41
+
Standards are enforced via [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/), which can be run any time with the following:
42
+
43
+
```sh
44
+
composer test:standards
45
+
```
46
+
41
47
42
48
### Running unit tests
43
49
44
50
[PHPUnit](https://phpunit.de/) is included as a development dependency, and should be run regularly. When submitting changes, please be sure to add or update unit tests accordingly. You may run unit tests at any time by running:
45
51
46
-
```bash
47
-
$ composer test
52
+
```sh
53
+
composer test:unit
48
54
```
49
55
50
56
#### Code coverage
@@ -53,8 +59,8 @@ $ composer test
53
59
54
60
To generate a report of code coverage for the current branch, you may run the following Composer script, which will generate an HTML report in `tests/coverage/`:
55
61
56
-
```bash
57
-
$ composer test-coverage
62
+
```sh
63
+
composer test:coverage
58
64
```
59
65
60
66
Note that [both the Xdebug and tokenizer PHP extensions must be installed and active](https://phpunit.de/manual/current/en/textui.html) on the machine running the tests.
0 commit comments