Watch 5 New Videos on PHPUnit and Dependency Injection (1 FREE!)

How to install PHPUnit on a Mac or Linux - 2:25

In this video, we install PHPUnit - the tool we’ll use to run PHP unit tests - on a Mac.

How to install PHPUnit on a Windows machine, what PEAR is and how it compares with Packagist - 5:09

Here we install PHPUnit on Windows using the PEAR package manager, and we do a short showdown on what make Packagist a better solution for most scenarios.

How to set up PHPUnit configuration and set up our first unit tests - 2:40

Now that we have PHPUnit set up, we set up a configuration file to tell PHPUnit where to find tests.

How setting up interfaces for your classes helps with unit testing - 3:57

We’ve run into interfaces a couple of times so far (interfaces are like scaffolding for any child classes), and in this video we discuss the advantages of using interfaces for PHPUnit tests.

(FREE!) What dependency injection is, and updating our framework to use interfaces - 2:05

In this video we briefly talk about what dependency injection is and why it makes sense, particularly for testable code. We also update our code to use the interfaces we talked about in the previous video.

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
user
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.