PHPUnit (Legacy): Testing with a Bite

0
Language

Level

Beginner

Access

Paid

Certificate

Paid

Learn the art of testing and save the day! This tutorial covers unit testing, TDD, mocking, data providers, exceptions, database handling, integration and functional testing, and CI. Start testing now!

Add your review

What you’ll be learning

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.

Indeed.

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!

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “PHPUnit (Legacy): Testing with a Bite”

×

    Your Email (required)

    Report this page
    PHPUnit (Legacy): Testing with a Bite
    PHPUnit (Legacy): Testing with a Bite
    LiveTalent.org
    Logo