Skip to content

Commit 125cc2d

Browse files
authored
Upgrade test runners to address security vulnerability (#92)
* test: upgrade test runners closing security vulnerability * chore: GT * tweak: ignore specific statics
1 parent 16323bc commit 125cc2d

26 files changed

Lines changed: 427 additions & 393 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © PHP.Gt contributors.
3+
Copyright © PHP.GT contributors.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,22 @@
1212

1313
"require-dev": {
1414
"phpstan/phpstan": "^2.1",
15-
"phpunit/phpunit": "^10.0",
16-
"phpmd/phpmd": "^2.13",
17-
"squizlabs/php_codesniffer": "^3.7"
15+
"phpunit/phpunit": "^12.5",
16+
"phpmd/phpmd": "^2.15",
17+
"squizlabs/php_codesniffer": "^4.0"
18+
},
19+
20+
"scripts": {
21+
"phpunit": "vendor/bin/phpunit --configuration phpunit.xml",
22+
"phpstan": "vendor/bin/phpstan analyse --level 6 src",
23+
"phpcs": "vendor/bin/phpcs src --standard=phpcs.xml",
24+
"phpmd": "vendor/bin/phpmd src/ text phpmd.xml",
25+
"test": [
26+
"@phpunit",
27+
"@phpstan",
28+
"@phpcs",
29+
"@phpmd"
30+
]
1831
},
1932

2033
"license": "MIT",
@@ -28,12 +41,13 @@
2841

2942
"autoload": {
3043
"psr-4": {
44+
"GT\\Curl\\": "./src",
3145
"Gt\\Curl\\": "./src"
3246
}
3347
},
3448
"autoload-dev": {
3549
"psr-4": {
36-
"Gt\\Curl\\Test\\": "./test/phpunit"
50+
"GT\\Curl\\Test\\": "./test/phpunit"
3751
}
3852
},
3953

0 commit comments

Comments
 (0)