PHPUnit: Testing with a Bite

We'll email you with updates

This course is in the planning stages

It's Friday night... it's stormy... the office is empty... and you're deploying fresh code to production. Suddenly, an alarm! What!? The fences are down!? The dinosaurs are escaping! Somehow, your beautiful code contained a bug! And as the raptors surround you, one thought keeps coming back: if only we had written tests.


In this tutorial, we're going to jump over the hurdle of learning how to test so you can save the day!

  • Basic unit testing
  • Test-Driven-Development: how to do it, when to do it!
  • Mocking and test doubles! Creating mocks in PHPUnit & Prophecy
  • Using data providers to run tests over and over again with different input
  • Running code before and after each test
  • Testing for exceptions
  • Handling the database in tests
  • Integration tests: testing with real objects
  • Functional testing!
  • Continuous Integration (CI): let the robots run your tests

So grab your keyboard, reboot the system, and start testing with us!

Your Guides

Andrew Marcinkevičius Ryan Weaver

Questions? Conversation?

  • 2017-08-02 weaverryan

    Haha "the usual question" :). Yes indeed! I hope over the next few months we'll start to be able to give concrete estimates very early on - our process is actually quite solid and predictable these days (woo!).


  • 2017-08-02 Andrew M.

    I would give a rough guess that it should be published 1-3 months before the year ends (it's right now in coding stages), but there always might be some unplanned issues delaying it.

  • 2017-08-02 Victor Bocharsky

    Hey Mehdi,

    Sorry, we don't have any ETA because this course is on early planning stage yet, but you can track it here: or press "Notify me when course is available" and we'll email you ;)


  • 2017-08-01 Mehdi Bagheri

    Hi, This is really what I need. let me be the first to ask the usual question :)
    any ETA yet?

  • 2017-08-01 Andriy Frankevych

    Yes! Just in time, I was waiting for this <3