Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

PHP Test Doubles - Fakes, Stubs, and Mocks

Gary Clarke via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course demonstrates how to replace objects in PHP tests with PHPUnit stubs and mocks. It covers return values, exceptions, callbacks, call expectations, and argument checks.

Syllabus

PHPUnit Test Doubles
Testing Expectations
Faking Method Return Values
Testing Consecutive Returns
Throwing Exceptions From Stubbed Methods
Will Return Callback
Test Faked Methods Receive Correct Args
Test Correct Args With Callbacks
The Mock Builder

Taught by

Gary Clarke

Reviews

Start your review of PHP Test Doubles - Fakes, Stubs, and Mocks

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.