|
22 | 22 | "psr/log": "^3" |
23 | 23 | }, |
24 | 24 | "require-dev": { |
25 | | - "phpspec/phpspec": "^7.2", |
26 | | - "phpunit/phpunit": "^9.6", |
| 25 | + "phpunit/phpunit": "^10.5", |
27 | 26 | "symplify/easy-coding-standard": "^9.4", |
28 | | - "friends-of-phpspec/phpspec-code-coverage": "^6.3", |
29 | | - "phpstan/phpstan": "^1.11", |
| 27 | + "phpstan/phpstan": "^2.1", |
30 | 28 | "symfony/process": "^5.4", |
31 | 29 | "squizlabs/php_codesniffer": "^3.7", |
32 | | - "slevomat/coding-standard": "^7.2" |
| 30 | + "slevomat/coding-standard": "^7.2", |
| 31 | + "phpstan/phpstan-phpunit": "^2.0", |
| 32 | + "phpstan/extension-installer": "^1.4" |
33 | 33 | }, |
34 | 34 | "suggest": { |
35 | 35 | "ext-openssl": "For SSL/TLS support and some SASL mechanisms.", |
|
40 | 40 | }, |
41 | 41 | "autoload-dev": { |
42 | 42 | "psr-4": { |
43 | | - "integration\\FreeDSx\\Ldap\\": "tests/integration/FreeDSx/Ldap", |
44 | | - "spec\\FreeDSx\\Ldap\\": "tests/spec/FreeDSx/Ldap" |
| 43 | + "Tests\\Integration\\FreeDSx\\Ldap\\": "tests/integration", |
| 44 | + "Tests\\Unit\\FreeDSx\\Ldap\\": "tests/unit" |
45 | 45 | } |
46 | 46 | }, |
47 | 47 | "config": { |
48 | 48 | "allow-plugins": { |
49 | | - "dealerdirect/phpcodesniffer-composer-installer": true |
| 49 | + "dealerdirect/phpcodesniffer-composer-installer": true, |
| 50 | + "phpstan/extension-installer": true |
50 | 51 | } |
51 | 52 | }, |
52 | 53 | "scripts": { |
53 | 54 | "test-coverage": [ |
54 | | - "phpspec run --no-interaction -c phpspec.cov.yml", |
55 | | - "phpunit --coverage-clover=coverage-integration.xml" |
| 55 | + "phpunit --testsuite unit --coverage-clover=coverage-unit.xml", |
| 56 | + "phpunit --testsuite integration --coverage-clover=coverage-integration.xml" |
56 | 57 | ], |
57 | | - "test-spec": [ |
58 | | - "phpspec run --no-interaction" |
| 58 | + "test-unit": [ |
| 59 | + "phpunit --testsuite unit" |
59 | 60 | ], |
60 | 61 | "test-integration": [ |
61 | | - "phpunit" |
| 62 | + "phpunit --testsuite integration" |
62 | 63 | ], |
63 | 64 | "analyse": [ |
64 | 65 | "phpstan --memory-limit=-1 analyse" |
65 | 66 | ], |
66 | 67 | "analyse-tests": [ |
67 | | - "phpstan analyse -c phpstan.tests.neon" |
| 68 | + "phpstan --memory-limit=-1 analyse -c phpstan.tests.neon" |
68 | 69 | ], |
69 | 70 | "cs-fix": [ |
70 | 71 | "phpcbf --standard=ruleset.xml --extensions=php --tab-width=4 -sp src", |
|
0 commit comments