Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Unit Testing by Example

PHP UK Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore unit testing in PHP through practical examples in this 56-minute conference talk from PHP UK Conference 2017. Learn how to transition from manual var_dump debugging to automated testing, starting with basic concepts and progressing to more advanced techniques. Discover strategies for writing effective test cases, improving existing code, and implementing regression tests. Examine real-world scenarios including e-commerce and catalog imports to understand how to apply testing principles. Gain insights on cyclomatic complexity, execution paths, and decision branches to optimize your test coverage. Delve into preemptive debugging techniques and learn how to effectively use mocks for dependencies. By the end of this talk, acquire the skills to confidently implement Test-Driven Development (TDD) while meeting tight deadlines.

Syllabus

Introduction
How to become a testing expert
Testing without automation
First opportunity to test
Safety net
Regression test
Improving existing code
Changing the code
Test both cases
New code
inspect array
rock climbing
ecommerce example
catalog imports example
write less code
some things to consider
use your judgment
how many test cases
cyclomatic complexity
execution paths
decision branches
recap
testing as preemptive debugging
mock dependencies
handling mocks

Taught by

PHP UK Conference

Reviews

Start your review of Unit Testing by Example

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.