What if you could learn how to write tests from someone who has been using them for a long time and also knows how to explain it in a way that cuts down on the fear and anxiety while teaching you what you need to go to get started immediately?

In this full-day training, Chris will teach people the basics of writing tests using PHPUnit. Topics covered include:

* high-level discussion of the role of testing
*assertions
*the Arrange-Act-Assert pattern
*what a PHPUnit test file looks like and where to locate them
*test doubles and when to use them
*data providers
*strategies for building test scenarios

Attendees will need the following: a laptop with PHP 7.2 (or whatever the most stable version is), the most recent stable version of PHPUnit installed, and be ready to actually write tests.

Comments

Comments are closed.

Ryan Howe at 11:06 on 30 May 2018

I though the training session was great. I learn best through examples and the ones that we went through were very help full but I would have liked to see more examples and more code that we could have taken back to review for more scenarios and testing types. Along with more code katas to take and work on after the presentation. The talking and insights were very good but it was hard to capture all the information that was coming out from the talk, because there was a lot more information discusses than what was captured in the slides and in the code examples.

I'm new to automated testing, so this workshop was perfect for me! Chris gave a well organized introduction to the Why's of automated testing and some personal anecdotes to bring the points home. The Arrange-Act-Assert pattern was very useful. During the first part of the day, the class was highly hands-on with an example for us to work through live. Later in the day, the examples used for describing test doubles seemed good, but there was less hands-on. This was in part because more code was shown which would have taken too long to write; it would have been great to have this in a repository as a base from which to work; I think that would have helped me really learn during that section. Overall, I left knowing a lot more than I came in with, and encouraged to learn more