Skip to content

Commit 312787c

Browse files
authored
Merge pull request #25 from rpkamp/composer-require-checker
Add ComposerRequireChecker to tests
2 parents 09e9624 + 20b5969 commit 312787c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ help:
33
@awk '/^#/{c=substr($$0,3);next}c&&/^[[:alpha:]][[:alnum:]_-]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}' $(MAKEFILE_LIST) | column -s: -t
44

55
# Run all tests
6-
test: lint code-style unit-tests phpstan
6+
test: lint code-style unit-tests phpstan composer-require-checker
77

88
# Lint all php files
99
lint:
@@ -31,4 +31,8 @@ endif
3131
phpstan:
3232
vendor/bin/phpstan analyze --level max src/ tests/
3333

34+
composer-require-checker:
35+
vendor/bin/composer-require-checker
36+
3437
.PHONY: help test lint code-style phpmd phpcs unit-tests phpstan
38+
.PHONY: composer-require-checker

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"minimum-stability": "stable",
2323
"require": {
2424
"php": "^7.2",
25+
"ext-json": "*",
2526
"php-http/client-implementation": "^1.0",
2627
"php-http/httplug": "^1.0",
2728
"php-http/message-factory": "^1.0",
@@ -36,6 +37,7 @@
3637
"squizlabs/php_codesniffer": "^3.4",
3738
"swiftmailer/swiftmailer": "^6.0",
3839
"phpstan/phpstan": "^0.11",
39-
"pdepend/pdepend": "^2.5"
40+
"pdepend/pdepend": "^2.5",
41+
"maglnet/composer-require-checker": "^2.0"
4042
}
4143
}

0 commit comments

Comments
 (0)