Skip to content
The documentation is not yet completly updated for Version 0.4. This will be done within the next few days.

Tests

Tests Since v0.3.2

Section titled “Tests ”

In this section it will be explained on how to define tests.

The following example shows all settings that can be set and which will be explained on this page:

tests:
lint:
name: Run php-cs-fixer and phpstan
tests:
- phpcsfixer
- phpstan
phpcsfixer:
name: Run php-cs-fixer
commands:
- php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -vvv --dry-run --diff --using-cache=no
phpstan:
name: Run phpstan
commands:
- php -d memory_limit=1G vendor/bin/phpstan analyze -c phpstan.dist.neon

name Since v0.3.2 required

Section titled “name ”

Defines the name of the Test.

commands Since v0.3.2

Section titled “commands ”

Define the commands that should be executed for this test.

tests Since v0.3.2

Section titled “tests ”

Contains a list of existing test entries that should be executed on after another.

image Since v0.3.2

Section titled “image ”

Defines the image that should used to run these commands. The default value is one of this images: PHP-CLI-Alpine. The selected PHP-Version is the currently set php-version in the webdev.yml.