Unit testing with Codeception
Unit testing with Codeception is a 2 days medium level training for engineers, held onsite or online. How to do PHP unit testing correctly.
Effective testing of business expectations
2 days workshop from Codeception founders
Most unit testing tutorials just show how to start writing basic unit tests. However, implementing unit tests in large enterprise architecture can’t be that simple. This training will guide you from basics to advanced, introducing students to unit, functional, and integration testing concepts.
Unit tests check system components individually, and integration tests act as concrete to verify integration between different parts of a system. Functional tests run on top of a PHP framework (Laravel, Symfony, Zend, Yii) and cover the system from the upside using public interfaces. We will also cover TDD, BDD, ATDD concepts to learn how to build tests before the code and design a scalable and testable application first.
We will have Codeception as the only tool to incorporate all levels of testing and provide a highly effective API for writing and maintaining PHP tests.
- Audience
- Engineers
- Type
- Training
- Duration
- 2 days
- Group
- 10 persons
- Level
- Medium
- Theory / practice
- 80/20
- Place
- Onsite, online
- Fee per participant
- [500€ or 700€, to confirm]
What does the Unit testing with Codeception training cover?
- 01
General overview
- The purpose of automated testing
- Testing styles: blackbox and whitebox testing
- Different testing levels: unit / integration / functional
- Business specification to drive a test
- Testing domain logic
- 02
Testable Code & Architecture
- Unit test for pure functions
- Writing testable code
- Test Driven Development (TDD)
- Data Providers
- Managing test dependencies
- Mocks and stubs
- Cyclomatic complexity and unit tests
- Refactoring legacy code
- 03
Integration & Unit Testing
- How to prioritize what to test
- Testing business logic
- Integration tests vs. Unit tests: when each of them is used
- Handling external services in integration tests
- Test data management: factories and fixtures
- Collecting code coverage
- 04
API & Controller Testing
- Controller Testing with Functional Tests
- REST API testing as functional tests
- Writing readable test scenarios
- Extending Codeception
Frequently asked questions
What knowledge is expected?
We expect experienced PHP developers, middle & senior levels.
What should be installed before course?
PHP 7.0+ with Xdebug installed https://secure.php.net/downloads.php
Git client https://git-scm.com/downloads
Composer https://getcomposer.org/download/
MySQL https://www.mysql.com/downloads/
JetBrains PhpStorm or Netbeans as IDE https://www.jetbrains.com/phpstorm/download/
Codeception http://codeception.com/install
Will I have support after the course?
Our company works according to the principle of individual approach to every client. This method lets us get success in problems of all levels.
What is included in practice?
Create unit test using TDD approach
Build unit and integration tests for user registration
Implement integration tests for a real application
Functional tests for Laravel-based application
REST API functional tests for Laravel-based application

Michael works for Codeception, CodeceptJS, and other open-source projects aimed to automate testing and make it easy and fun. By developing this product, he gathered experience from a wide range of companies and individuals who use Codeception. He always tries to show the complete picture of testing. He believes that tests should be easy to read, write, and maintain. Michael is also a frequent speaker at PHP (Dutch PHP, PHP Benelux, …) and Test Automation conferences.
Join the wait list
Within one week after you apply we send a confirmation email if you are admitted. We accept up to 12 participants.
10% off for groups of 8 or more