Unit Testing
with Codeception

Effective testing of business expectations
2 days workshop from Codeception founders


medium
workshop
2 days
Most of unit testing tutorials just show how to start writing basic unit tests. However, implementing unit tests in heavy 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 test system component in isolation, 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 upside, using public interfaces. We will also cover TDD, BDD, ATDD concepts, to learn how to build test before the code, to design scalable and testable application at first.

We will help Codeception as the only tool to incorporate all levels of testing and provide highly effective API for writing and maintaining PHP tests.
Engineers
Target audience
Workshop
Course type
2 days
Course duration
15 persons
Average amount in a group
Medium
Course level
20/80
Theory / practice
Onsite, online
Place
500€
Fee for the course
Workshop agenda
1
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
2
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
3
Integration & Unit Testing
  • How to prioritize what to test
  • Testing business logic
  • Integration tests vs Unit tests: when to use which
  • Handling external services in integration tests
  • Test data management: factories, fixtures
  • Collecting code coverage
4
API & Controller Testing
  • Controller Testing with Functional Tests
  • REST API testing as functional tests
  • Writing readable test scenarios
  • Extending Codeception
What knowledge is expected?
We expect experience PHP developers, middle & senior levels.
What should be installed before course?
  • PHP 7.x
  • MySQL
  • JetBrains PhpStorm or Netbeans as IDE
Will I have support after course?
Our company works according to the principle of individual approach to every client. This method lets us to get success in problems of all levels.
What is included in practice?
  • Create unit test using TDD approach
  • Building unit and integration tests for user registration
  • Implementing integration tests for a real application
  • Functional tests for Laravel-based application
  • REST API functional tests for Laravel-based application

Michael Bodnarchuk
Codeception founder and tech consultant.
Michael works for Codeception, CodeceptJS and other open-source projects aimed to automate testing and make testing easy and fun. By developing his product he gathered experience from wide range of companies and individuals who are using Codeception.

He always tries to show the wider 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.
Michael Bodnarchuk
Codeception founder and tech consultant.
Michael works for Codeception, CodeceptJS and other open-source projects aimed to automate testing and make testing easy and fun. By developing his product he gathered experience from wide range of companies and individuals who are using Codeception.

He always tries to show the wider 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.
Application
10% discount for groups of 10 people or more
Within one week after the application you will receive a confirmation email only if you are admitted. To be officially registered as a participant, you must pay the enrollment fee. A maximum of 20 participants will be accepted.
Contact us:
If you need to get in touch with us, send a note to trainings@sdclabs.com or follow us on facebook for more updates and details.
Check out other awesome courses
Let us help you take development and test automation further. We offer a number of trainings that can help you and your organization get the most out of our enterprise support. Request a quote at trainings@sdclabs.com

Get PHP test automation insights weekly. No spam ever!