Merge pull request #314 from nextcloud/techdebt/noid/fix-php-requirements-and-phpunit

Fix php requirements and phpunit
This commit is contained in:
Joas Schilling 2021-06-15 12:08:02 +02:00 committed by GitHub
commit f5047b9fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -1,9 +1,27 @@
{ {
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/christophwurst/nextcloud/OCP",
"OCA\\Registration\\": "lib/"
}
},
"name": "nextcloud/registration",
"description": "registration",
"license": "AGPL",
"require": {
},
"scripts": { "scripts": {
"cs:check": "php-cs-fixer fix --dry-run --diff", "cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix", "cs:fix": "php-cs-fixer fix",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l" "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l"
}, },
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "7.2"
}
},
"require-dev": { "require-dev": {
"phpunit/phpunit": "^8.0", "phpunit/phpunit": "^8.0",
"nextcloud/coding-standard": "^0.5.0", "nextcloud/coding-standard": "^0.5.0",

View File

@ -3,7 +3,6 @@
verbose="true" verbose="true"
> >
<testsuite name='Registration app tests'> <testsuite name='Registration app tests'>
<directory suffix='Test.php'>Integration</directory>
<directory suffix='Test.php'>Unit</directory> <directory suffix='Test.php'>Unit</directory>
</testsuite> </testsuite>
<!-- filters for code coverage --> <!-- filters for code coverage -->