Advanced PHPUnit
PHPUnit is the standard test automation tool for PHP. This training teaches the advanced use of PHPUnit in real projects. In addition to testing object interactions and side effects, you will also learn, for example, how to avoid risky tests and work with code coverage information.
Learning Objectives
- You can also test difficult scenarios such as the interaction of objects
- You can fix the problems that underlie risky tests
- You can find code that is not yet tested with the help of PHPUnit
Target Audience
This training is aimed at participants who have practical experience with test automation and want to learn how to successfully implement difficult tests with PHPUnit, as required in everyday project work.
Requirements
Prerequisites are practical experience with PHPUnit and knowledge of object-oriented programming in PHP. The necessary basics are taught in Test Automation with PHPUnit and Advanced OOP .
Advanced PHPUnit 1.188,- EUR 12 Credits
6 Online Sessions á 120 minutes
This training will next start on .
After that, it is expected to next take place in .
-
Test Isolation
Duration: 120 minutes
- What is test isolation and why do we need it?
- Testing isolated from dependencies: Interfaces, loose coupling, and stubbing
- Practical Exercise
- Exercise Discussion and Feedback
-
Collaborating Objects
Duration: 120 minutes
- Q and A
- Testing communication between objects
- Practical Exercise
- Exercise Discussion and Feedback
-
Testing Side Effects
Duration: 120 minutes
- Q and A
- Testing I/O: File system, database, email, and other nasty things
- Practical Exercise
- Exercise Discussion and Feedback
-
Code Coverage
Duration: 120 minutes
- Q and A
- Effective use of code coverage
- Practical Exercise
- Exercise Discussion and Feedback
-
Risky Tests
Duration: 120 minutes
- Q and A
- Understanding and remediating risky tests
- Practical Exercise
- Exercise Discussion and Feedback
-
Optimizing the Test Suite
Duration: 120 minutes
- Q and A
- Tips for (more) readable tests
- Tricks for running tests faster
- Summary and Outlook
Your Trainer
Sebastian Bergmann is the author of PHPUnit and sets the industry standard for quality assurance.Exclusive and customized?
We are happy to conduct any training exclusively online ("in-house") for you. We adapt the content and focus to your specific wishes and needs and optionally work with examples directly from your code base.