-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
63 lines (63 loc) · 2.03 KB
/
Copy pathcomposer.json
File metadata and controls
63 lines (63 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"name": "glerner/phpunit-testing",
"description": "A modular, reusable PHPUnit testing framework for WordPress plugin development",
"version": "1.0.0",
"type": "library",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "George Lerner",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=8.2"
},
"require-dev": {
"10up/wp_mock": "0.4.2",
"brain/monkey": "^2.6",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"friendsofphp/php-cs-fixer": "^3.50",
"mockery/mockery": "^1.4",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^11.0",
"slevomat/coding-standard": "^8.17",
"squizlabs/php_codesniffer": "^3.6",
"szepeviktor/phpstan-wordpress": "^1.3",
"wp-coding-standards/wpcs": "^3.1"
},
"autoload": {
"classmap": ["src/"],
"exclude-from-classmap": [
"src/Stubs/"
]
},
"autoload-dev": {
"classmap": [
"tests/Framework/",
"tests/Unit/",
"tests/Integration/",
"tests/WP_Mock/"
]
},
"scripts": {
"test:framework": "phpunit -c tests/bootstrap/phpunit-framework-tests.xml",
"phpcs": "phpcs",
"phpcbf": "composer run-script spaces_to_tabs && phpcbf",
"check-style": "phpcs -p --standard=phpcs.xml",
"fix-style": "phpcbf -p --standard=phpcs.xml",
"spaces_to_tabs": "find src config tests templates -name \"*.php\" -type f -exec sed -i 's/^ /\\t/g' {} \\;",
"analyze": "vendor/bin/phpstan analyse --configuration=phpstan.neon",
"sync:wp": "php bin/sync-to-wp.php"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}