/php-testing-workshop

A workshop built around PHPUnit

Primary LanguagePHP

PHP Testing Workshop

A workshop built around PHPUnit

Installation

Requirement: You need Docker installed on your machine and composer

  1. Clone this project
  2. Run docker-compose up -d to start the project
  3. Run bin/composer install to install the dependencies
  4. (Optional) Import the workshop.postman_collection.json file in Postman

Workshop contents

  1. Introduction: Why should we test?
  2. How to install and run PHPUnit
  3. Writing your first unit test
  4. Sidetrack: object design, two types of objects
  5. Integration tests
  6. Contract testing
  7. Acceptance tests