TESTC1 | Write your first unit tests with PHPUnit

  • This half-day course lets learners know what, when and how to test PHP code.
  • Prerequisites

    Personal skills: Good command of PHP, and its IDE (PHPStorm preferences). Techniques: PHP up to date (7.2.5 minimum), Composer.
  • Goals

    Thanks to the flagship features of PHPUnit, the learner will be able to obtain complete code coverage, through classes and test scenarios, according to specific standards and good practices.

Full program

Introduction

  • Context and definitions
  • for or against
  • What to test, when to test?

Writing unit tests with PHPUnit

  • Installation of the PHPUnit test framework
  • Write your first class of unit test scenarios according to standards
  • Test dependencies
  • Test exceptions
  • Use data providers
  • Calculate your coverage code
  • Use CLI options
  • Fixtures and database tests
  • Create your own assertions
  • TP

Time program

Day 1

Appreciation of the training

Global average : 3.4/5

  1. Educational rating : 4.0/5
  2. Content rating : 3.2/5
  3. Pace rating : 3.0/5
  • Duration

    3 hour(s)
  • Level

    Beginner
  • Available languages

    French
  • Available countries

    Worldwide
From €390.00
No session scheduled

No session is scheduled for this course. However we organize tailored training courses: contact us for more informations!