Skip to content

Commit

Permalink
Adding some of the most common php tooling - phpunit for running unit…
Browse files Browse the repository at this point in the history
… tests, paratest for running the same unitests in parallel, and php-cs-fixer for enforcing formatting. php-cs-fixer could be considered to be promoted to being a linter as soon as I work out how to parse its output and feed it through a post-processor like phpstan is
  • Loading branch information
matthewbaggett committed Apr 26, 2024
1 parent f5a032c commit d724356
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/paratest/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 0.1
tools:
definitions:
- name: paratest
runtime: php
package: brianium/paratest
known_good_version: 7.4.3
shims: [paratest]
environment:
- name: PATH
list: ["${tool}/vendor/bin"]
11 changes: 11 additions & 0 deletions tools/php-cs-fixer/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 0.1
tools:
definitions:
- name: php-cs-fixer
runtime: php
package: friendsofphp/php-cs-fixer
known_good_version: 3.54.0
shims: [php-cs-fixer]
environment:
- name: PATH
list: ["${tool}/vendor/bin"]
11 changes: 11 additions & 0 deletions tools/phpunit/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 0.1
tools:
definitions:
- name: phpunit
runtime: php
package: phpunit/phpunit
known_good_version: 11.1.3
shims: [phpunit]
environment:
- name: PATH
list: ["${tool}/vendor/bin"]

0 comments on commit d724356

Please sign in to comment.