Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
"psr-4": {
"APITester\\": "src/",
"APITester\\Symfony\\Component\\PropertyInfo\\": "lib/property-info/"
},
"files": [
"config/constants.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down Expand Up @@ -70,13 +67,15 @@
"symfony/finder": "^5.0 || ^6.0 || ^7.0",
"symfony/http-client": "^5.0 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.0 || ^6.0 || ^7.0",
"symfony/process": "^5.0 || ^6.0 || ^7.0",
"symfony/property-access": "^5.0 || ^6.0 || ^7.0",
"symfony/property-info": "^5.0 || ^6.0 || ^7.0",
"symfony/psr-http-message-bridge": "^1.2 || ^2.1.2 || ^6.0 || ^7.0",
"symfony/serializer": "^5.0 || ^6.0 || ^7.0",
"symfony/yaml": "^5.0 || ^6.0 || ^7.0"
},
"require-dev": {
"brianium/paratest": "^6.0",
"ergebnis/composer-normalize": "^2.25",
"ergebnis/phpstan-rules": "^1.0",
"korbeil/phpstan-generic-rules": "^1.0",
Expand Down
5 changes: 0 additions & 5 deletions config/constants.php

This file was deleted.

9 changes: 1 addition & 8 deletions config/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ includes:
- phpstan-baseline.neon
parameters:
treatPhpDocTypesAsCertain: false
bootstrapFiles:
- constants.php
level: 9
paths:
- ../src
Expand All @@ -27,17 +25,11 @@ parameters:
- '/Unable to resolve the template type TKey in call to function collect/'
- '/Unable to resolve the template type TValue in call to function collect/'
- '/Class APITester\\Preparator\\Config\\PreparatorConfig is neither abstract nor final./'
- '/Instantiated class \\ApiTestCase not found./'
- '/Instantiated class \\TestCaseKernelProvider not found./'
- '/Construct empty\(\) is not allowed. Use more strict comparison./'
- '/Language construct empty\(\) should not be used./'
- '/In method "APITester\\Requester\\SymfonyKernelRequester::request", caught "Throwable" must be rethrown.+/'
- '/.+ APITester\\Test\\TestCase\|null is not subtype of type PHPUnit\\Framework\\Test\|null/'
- '/throws checked exception Symfony\\Component\\Serializer\\Exception\\ExceptionInterface/'
- '/APITester\\Command\\ExecutePlanCommand::\$defaultName has no type specified./'
- {paths: [ ../tests ], message: '/Method .+ throws checked exception .+ but it''s missing from the PHPDoc @throws tag./'}
- {paths: [ ../src/Test/TestCase.php, ../src/Test/Plan.php ], message: '/Calling eval\(\) is forbidden, eval is evil, please write more code and do not use eval\(\)/'}
- {paths: [ ../src/Test/TestCase.php, ../src/Test/Plan.php ], message: '/Language construct eval\(\) should not be used./'}
exceptions:
check:
missingCheckedExceptionInThrows: true
Expand All @@ -47,4 +39,5 @@ parameters:
- LogicException
- JsonException
- PHPUnit\Framework\Exception
- Random\RandomException
- cebe\openapi\exceptions\TypeErrorException
12 changes: 12 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,16 @@
date.timezone = "Europe/Paris"
'';
};

scripts.sdz-link.exec = ''
cd ../SdZv4 || exit 1
composer config repositories.api-tester-local '{"type": "path", "url": "../APITester", "options": {"symlink": true}}' --json
composer update openclassrooms/api-tester --no-interaction --ignore-platform-reqs
'';

scripts.sdz-unlink.exec = ''
cd ../SdZv4 || exit 1
composer config --unset repositories.api-tester-local
composer update openclassrooms/api-tester --no-interaction --ignore-platform-reqs
'';
}
Loading