How PHPUnit Works
Please rate the course
Source:
Category:
Language:
Russian
Duration:
02:28:13
Number of lessons:
1
Added date:
22/10/2024
Rating:
0.0
Course short description
Let's analyze the structure of test frameworks. We'll program our own test framework using PHPUnit as an example. In it, as in real life, we'll scan test files, test expected exceptions, and write parameterized tests with data providers with the attribute DataProvider
.
At the same time, we'll refactor the resulting code, eliminating encapsulation violations and side effects of recording results and direct output to the screen. We'll take out the summary and launch progress printers and make a loosely coupled architecture using events: