paint-brush
PHP Test Driven Development Part 4: Enter The Mockby@sameernyaupane
4,568 reads
4,568 reads

PHP Test Driven Development Part 4: Enter The Mock

by Sameer Nyaupane4mSeptember 15th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Hey there, welcome to part 4! Today we’ll learn how to mock. Mocking is a process where you create a fake instance of a real class, and test against it. This is so that, you do not have to worry about the real functionality of external dependencies inside a class. This makes unit testing a lot easier and reliable.

Company Mentioned

Mention Thumbnail
featured image - PHP Test Driven Development Part 4: Enter The Mock
Sameer Nyaupane HackerNoon profile picture
Sameer Nyaupane

Sameer Nyaupane

@sameernyaupane

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite