DCO2019 Start unit testing your code today by alberto567

preview_player
Показать описание
Unit tests are the fastest, most reliable kinds of tests.

A practical session in which we will demonstrate how to take any PHP code (Drupal or other) and make it unit testable without installing anything on your computer other than Docker. We will look at:

How to organize legacy (i.e. untested) code to make it testable
How PHP traits make testing easier
How to start using PHPUnit immediately without installing it (using only Docker)
How to use stub objects and mock methods
How to unit test Javascript without installing anything other than Docker
How to run your unit tests on a continuous integration environment such as CircleCI
To get the most out of this session, install Docker and make sure the code you want to test is hosted on Github.

Рекомендации по теме