Skip to content

Commit

Permalink
fix(rules): add PHP Pest
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 8, 2023
1 parent b0b1597 commit b9181b5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ exports[`all > should match everything 1`] = `
"pagerduty",
"percona",
"php",
"phppest",
"phpstan",
"phpunit",
"pingdom",
Expand Down
1 change: 1 addition & 0 deletions src/rules/php/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './doctrinephp.js';
import './laravel.js';
import './magento.js';
import './phppest.js';
import './phpstan.js';
import './phpunit.js';
import './symfony.js';
Expand Down
8 changes: 8 additions & 0 deletions src/rules/php/phppest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'phppest',
name: 'PHP Pest',
type: 'tool',
dependencies: [{ type: 'php', name: 'pestphp/pest' }],
});
6 changes: 6 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ exports[`php > should match everything 1`] = `
"ovh",
"pagerduty",
"php",
"phppest",
"phpstan",
"phpunit",
"postgresql",
Expand Down Expand Up @@ -611,6 +612,11 @@ exports[`php > should match everything 2`] = `
"ovh/ovh",
"0.0.0",
],
[
"php",
"pestphp/pest",
"0.0.0",
],
[
"php",
"php-amqplib/php-amqplib",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export type AllowedKeys =
| 'pagerduty'
| 'percona'
| 'php'
| 'phppest'
| 'phpstan'
| 'phpunit'
| 'pingdom'
Expand Down

0 comments on commit b9181b5

Please sign in to comment.