Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 923 Bytes

File metadata and controls

49 lines (36 loc) · 923 Bytes

Developing PHP-TUF Composer Integration

This project uses DDEV to standardize its local development environment. To get started, make sure that you have the latest release of DDEV installed.

Initial setup

ddev start
ddev composer install

Running tests

ddev composer test

To run a single test use PHPUnit's --filter option:

ddev exec phpunit ./tests --debug --filter=testCannotProtectNonComposerRepository

Checking code coverage

ddev xdebug
ddev composer coverage

Linting and fixing

Linting for syntax, then style:

ddev composer lint
ddev composer phpcs

Fixing style errors that can be automatically fixed:

ddev composer phpcbf

Static analysis

To run PHPStan against the codebase:

ddev composer phpstan