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
{{ message }}
This repository was archived by the owner on Oct 30, 2024. It is now read-only.
*[PHPNats on Packagist](https://packagist.org/packages/repejota/nats)
95
97
96
98
### Tests
97
99
98
100
Tests are in the `tests` folder.
99
-
To run them, you need `PHPUnit` and execute `make test`.
101
+
To run them, you need `PHPUnit` and execute `make test-tdd`.
100
102
101
103
We also have a BDD test suite under the `spec` folder.
102
-
To run the suite, you need `PHPSpec` and execute `make bdd`.
104
+
To run the suite, you need `PHPSpec` and execute `make test-bdd`.
105
+
106
+
You can also execute the all suites ( TDD + BDD ) with `make test`.
103
107
104
108
### Code Quality
105
109
106
110
We are using [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer/docs)
107
111
to ensure our code follow an high quality standard.
108
112
109
-
To perform an analysis of the code execute `make cs`.
113
+
To perform an analysis of the code execute `make lint`.
114
+
115
+
There is currently three steps when we lint our code:
116
+
117
+
* First we lint with php itself `php -l`
118
+
* Then we lint with PSR2 standard
119
+
* And finally we lint with a custom [ruleset.xml](https://github.com/repejota/phpnats/blob/feature/lint-squiz/ruleset.xml) that checks dockblocks and different performance tips.
0 commit comments