TESTC1 | Write your first unit tests with PHPUnit!

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

    Skills: Good command of PHP, and its IDE (PHPStorm preferences). Techniques: PHP up to date (7.1 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, with what tools?

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
  • 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!