This tutorial walks through the basic process of installing PHPUnit on your computer with Compser and ensuring you are ready to start testing your PHP applications.
- [Instructor] Installing PHPUnit first requires…installing a recent version of PHP.…At least PHP 5.6 or greater.…If you don't have PHP installed on your machine,…the documentation at PHP.net…will walk you through the process.…There are also additional PHP courses…that cover the installation process.…After you have installed PHP, come back…and I'll walk you through installing PHPUnit…using Composer on your machine.…
Please note, you will need the DOM, JSON, PCRE,…Reflection, SPL and XMLWriter extensions for this course.…As well as Xdbug for some particular…subsections of this course.…We'll begin by installing Composer.…Visit the Composer site at getcomposer.org.…Here we can see a collection of links.…One of these links on the home page is for getting started.…We'll click on this now.…
After this, you'll want to click on and follow…the instruction process for your operating system.…Please install Composer globally on your machine.…After you have installed Composer,…you'll want to create a new directory…somewhere on your machine…
- 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
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.