Skip to content

Testing

tilttek/game-night

The package's tests

composer install
vendor/bin/phpunit --no-configuration tests

The unit suite, under tests/Unit, runs without a kernel, a database or a network: the nights live in Store\InMemoryNightStore, the catalogue in the in-memory store of tilttek/game-catalog, and the clock is the MockClock of symfony/clock. In the monorepo, Infection holds the package at 100 % of covered mutants.

An application tests its own NightStore against the rules of the store: a new night kept once, a stale night refused, the version raised by one at each write.