Главная
Study mode:
on
1
Introduction
2
How to become a testing expert
3
Testing without automation
4
First opportunity to test
5
Safety net
6
Regression test
7
Improving existing code
8
Changing the code
9
Test both cases
10
New code
11
inspect array
12
rock climbing
13
ecommerce example
14
catalog imports example
15
write less code
16
some things to consider
17
use your judgment
18
how many test cases
19
cyclomatic complexity
20
execution paths
21
decision branches
22
recap
23
testing as preemptive debugging
24
mock dependencies
25
handling mocks
Description:
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.

Unit Testing by Example

PHP UK Conference
Add to list
0:00 / 0:00