kuria / dev-meta
Common development dependencies and scripts for Kuria libraries
Installs: 1 247
Dependents: 19
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- ext-mbstring: *
- ext-tokenizer: *
- kuria/composer-pkg-scripts: ^1.0
- kuria/phpunit-extras: ^2.0
- phpstan/phpstan-phpunit: ^0.9.4
- phpstan/phpstan-shim: ^0.9.2
- phpunit/phpunit: ^7.3.5
- squizlabs/php_codesniffer: ^3.3.1
README
Common development dependencies and scripts for Kuria libraries.
Contents
Requirements
- PHP 7.1+
Usage
Composer scripts
This package defines the following composer scripts:
composer all
- run codestyle checks and testscomposer tests
- run testscomposer coverage
- run tests and generate code coverage reportcomposer cs
- run codestyle checkscomposer cs:fix
- attempt to automatically fix codestyle violations
Run the composer package-scripts:list
to show commands to only run specific tools.
Base test class
The Kuria\DevMeta\Test
class should be extended instead of PHPUnit\Framework\TestCase
.
It provides access to additional features from kuria/phpunit-extras.
<?php namespace Acme; use Kuria\DevMeta\Test; class ExampleTest extends Test { // ... }