2014
Lynda
Kristian Secor
1h 14m
English
Unit testing is a way to confirm proper execution of a computer program. PHPUnit provides a testing framework for PHP developers to do it right. This brief course covers everything you'll need to get up and running with PHPUnit: where to download it, how to install it, and how to use it to unit test your code. Kristian Secor provides a high-level overview of this invaluable framework, helping you guide test-driven development at your organization.
Topics include:
Working with assertions, annotations, and template methods of testing
Using mock and stub objects
Testing private and protected methods
Looking for weak spots in your testing, with code coverage
Testing inherited projects
Introduction 1m 39s
Welcome and course overview 40s
What you should know before watching this course 34s
Using the exercise files 25s
1. What Is Unit Testing? 3m 57s
Exploring the benefits of unit testing 1m 53s
When to create unit tests 2m 4s
2. Installing PHPUnit 13m 24s
Setting up our environment: Mac 6m 59s
Setting up our environment: Windows 6m 25s
3. Our First Tests 12m 55s
Writing assertions on public methods 5m 7s
Annotations 6m 9s
Template methods: Setup and teardown 1m 39s
4. More Advanced Testing 40m 31s
Testing private and protected methods 3m 37s
Using mock objects 7m 40s
Stub methods 2m 12s
Code coverage 6m 33s
Refactoring an existing project: Creating a test environment 8m 7s
Refactoring an existing project: Determining if the code is testable 3m 38s
Refactoring an existing project: Testing the code 8m 44s
Conclusion 2m 15s
Where to go from here 2m 15s
www.lynda.com/PHPUnit-tutorials/Unit-Testing-PHPUnit/175019-2.html
Download File Size:164.89 MB