test: add tests

This commit is contained in:
2026-02-15 15:46:27 +01:00
parent bd065eab32
commit 6f2cb7e69d
10 changed files with 5673 additions and 5 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
.PHONY: all
all: ./vendor
.PHONY: test
test: ./vendor
./vendor/bin/phpunit tests
.PHONY: lint
lint: ./vendor
./vendor/bin/psalm --show-info=true
docs/coverage: ./vendor $(wildcard src/**.php) $(wildcard tests/**.php)
XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html docs/coverage tests
@touch $@
./vendor: composer.json composer.lock
composer install
@touch $@