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)
93
97
94
98
### Tests
95
99
96
100
Tests are in the `tests` folder.
97
-
To run them, you need `PHPUnit` and execute `make test`.
101
+
To run them, you need `PHPUnit` and execute `make test-tdd`.
98
102
99
103
We also have a BDD test suite under the `spec` folder.
100
-
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`.
101
107
102
108
### Code Quality
103
109
104
110
We are using [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer/docs)
105
111
to ensure our code follow an high quality standard.
106
112
107
-
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