Skip to content

peoplepath/workshop-phpunit

Repository files navigation

Code coverage

  1. Zapnout xdebug mode coverage v dockerfile místo xdebug.mode=debug
xdebug.mode=coverage
  1. Build docker containeru
docker compose build
  1. Spustit znova docker compose
docker compose up -d
  1. Připojit se do containeru
docker exec -it web bash
  1. Generovat code coverage Jako text do konzole
vendor/bin/phpunit --coverage-text /var/www/html/tests

Jako HTML

vendor/bin/phpunit --coverage-html /var/www/html/log/coverage /var/www/html/tests

Mock final method

  1. je zapotřebí nainstalovat balíček dg/bypass-finals
composer require dg/bypass-finals --dev
  1. Vytvořit extension pro PHPUnit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published