In this video, Justin explores the basics of unit testing in general and working with PHPUnit to develop applications using test-driven development, or TDD.
- [Instructor] This course covers the basics…of writing unit test in PHP…with the testing framework PHPUnit.…Let's start with the basics.…What is unit testing?…A classic definition of unit testing,…from automated defect prevention,…states that unit testing is a software testing method…by which individual units of source code,…sets of one or more computer program modules…together with associated control data,…usage procedures, and operating procedures…are tested to see determine whether they are fit for use.…
So that's a pretty long definition.…Let's break this down a bit…so we understand it better.…Unit testing is more generally the idea of testing…isolated units of code to ensure the code…meets some parameters.…Typically that it correctly performs as expected.…When we talk about an isolated unit of code,…we're typically talking about a single function or method,…the smallest unit of code that can be…independently run and operated.…Test driven development means different things…to different people.…
The generally accepted definition means you write…
- Why use unit testing?
- Writing unit tests
- Extending unit tests
- Filtering PHPUnit tests
- Building dummy objects
- Working with data providers
- Writing an exception-based test
- Using TDD tactics
- Using PHPUnit advanced tactics, such as database tests
Skill Level Intermediate
PHP: Managing Persistent Sessionswith David Powers2h 41m Intermediate
1. The Basics of Test-Driven Development
2. Advanced Test-Driven Development
3. Test-Driven Development Tactics
4. PHPUnit Advanced Tactics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.