Getting Started with PHPUnit

Matt Frost (16.Apr.2015 at 09:00, 3 hr )
Workshop at Lone Star PHP 2015 (English - US)

Rating: 5 of 5

Getting Started with PHPUnit

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

 
Comments closed.

Comments

Rating: 5 of 5

17.Apr.2015 at 09:47 by Darren Wright (29 comments)

Excellent Talk, well structured. A little frustrating that files/instructions weren't available ahead of time to setup my environment, which threw off my attention.

Rating: 5 of 5

17.Apr.2015 at 09:48 by Jesse Maxwell (30 comments)

This was fantastic. I liked the code work, and enjoyed the testing that we did.

Rating: 4 of 5

19.Apr.2015 at 08:50 by Wun Chiou (8 comments)

The code preparation was very good. I like how you had examples that started simple and then scaled up. I like how you walked around to help as needed (although the room wasn't really set up to facilitate that very well). I particularly liked the part on mocking.

I think the instruction (not the code), however, needed a bit more scaffolding. For example, the jump from slide 17 to 18 is a huge jump for someone (like me) who has never used phpunit before. A little explanation on phpunit.xml, file structure, the organization of the test file, and finally how to actually run the test, would have made things a little less confusing for me.

Just a tip for general improvement: the typical instructional flow when teaching a skill is: I do > We do > You do. First you show how to do it, then you give the students a similar task and see if they can do it (helping as needed), and finally you give a similar task for the students to do alone (homework). Add a little of that strategy and this workshop will be fantastic.

Rating: 5 of 5

19.Apr.2015 at 09:53 by Anonymous

Awesome training session, filled in a lot of gaps with my PHP Unit knowledge.

The only improvements I could suggest would be:
1. For the LSP organizers to send out the required files prior to the session, I personally didn't receive the email with the repo to clone, only the email requiring PHPUnit to be installed. Sending out the email 2 or more times could help ensure people receive it and install those files, this took up about 45 minutes of the class - sure some people would have done it in class and needed assistance, however several people had no issues installing it other than the throttled internet rate.
2. After giving us time to complete the code section, running through the solution too. This would help reinforce how the code works, plus help people that weren't able to get the solution in the allocated time. Walking around helping people was awesome for that 1-on-1 help too.

Thanks so much!

Rating: 5 of 5

20.Apr.2015 at 09:30 by Justin Voelkel (13 comments)

Good progression from the basic calculator examples into more useful real world use cases like API/DB mocking. As a complete beginner I was able to work my way through the examples with minimal frustration.

Rating: 5 of 5

22.Apr.2015 at 10:54 by Eric Poe (96 comments)

Although I have used PHPUnit before and use it as part of my toolset at work, I have struggled with mocks in unit testing. Why should I mock? What the heck am I mocking? Matt answered these questions and even gave us various exercises in basic unit testing and mocking API calls. It was these mocking of API calls that drove the mocking point home for me.

Matt has a great speaking voice, an easy-going presence, and a calm, intentional, manner of responding to questions and problems that arise.

© Joind.in 2019