Unit Test Examples
Example code for my talks and workshops on unit testing.
Clone this repository, or download the ZIP file.
If you would rather use something else instead, feel free to adapt
In order to run the PHP tests, you have to install the required PHP packages first.
Install with Composer:
$ composer install
Then, execute PHPUnit, which will use the configuration provided in
Install with Yarn:
Then, run the
test script, defined in
$ yarn test
In case you want to use npm instead, do it like so:
$ npm i && npm run test
Copyright (c) 2018 Thorsten Frommen
This code is licensed under the MIT License.