How often have you rewritten your unit tests from scratch just because the code it was testing evolved slightly? In this session we will explore some unit testing techniques from other languages to produce more robust tests in PHP. You’ll never have to send your unit test to the trashcan again.

Comments

Comments are closed.

The speaker is not really engaging for the audience. Lack of rythm, a lot of "humm", some slides were "unattended by the speaker".

Some of the examples were just bad practices! In your example with cars and Colors: your test is not validating the principle of single block of code to be tested. When your test is failing is it the method paint or getColor that is failing?

You don't make a difference between a stub and a mock.

Seriously, mock is for bad/existing code? Mock is for solving dependency injection issues with testing. Is DI wrong according to you?