|
17 | 17 | }, |
18 | 18 | "config": { |
19 | 19 | "platform": { |
20 | | - "php": "7.3" |
| 20 | + "php": "8.2" |
21 | 21 | } |
22 | 22 | }, |
23 | 23 | "require": { |
24 | | - "php": "^7.3 || ^8.0", |
| 24 | + "php": "^8.2 || ^8.3", |
25 | 25 | "ext-curl": "*" |
26 | 26 | }, |
27 | 27 | "require-dev": { |
28 | | - "phpdocumentor/phpdocumentor": "^2.9", |
29 | | - "phpunit/phpunit": "^9.2", |
| 28 | + "friendsofphp/php-cs-fixer": "^3.63", |
| 29 | + "phpstan/phpstan": "^1.12", |
| 30 | + "phpunit/phpunit": "^11.3", |
30 | 31 | "vlucas/phpdotenv": "^5.6" |
31 | 32 | }, |
32 | 33 | "autoload": { |
33 | | - "psr-4": {"libredte\\api_client\\": "src/"} |
| 34 | + "psr-4": { |
| 35 | + "libredte\\api_client\\": "src/", |
| 36 | + "libredte\\dte_facturacion\\": "tests/dte_facturacion/", |
| 37 | + "libredte\\pagos_cobros_masivos\\": "tests/pagos_cobros_masivos/" |
| 38 | + } |
34 | 39 | }, |
35 | 40 | "scripts": { |
36 | 41 | "docs": "php tools/phpdocumentor run --config=phpdoc.xml", |
37 | 42 | "tests": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml", |
38 | | - "tests_dte": "vendor/bin/phpunit --configuration=phpunit.xml --no-coverage --testsuite dte", |
39 | | - "tests_contab": "vendor/bin/phpunit --configuration=phpunit.xml --no-coverage --testsuite contab", |
40 | | - "tests_pagos": "vendor/bin/phpunit --configuration=phpunit.xml --no-coverage --testsuite pagos", |
41 | | - "tests_readonly": "vendor/bin/phpunit --testsuite readonly --filter 'test_dte_buscar_documento_emitido|test_dte_estado|test_dte_consultar|test_dte_ted|test_pagos_buscar_cobro|test_pagos_info_cobro'", |
42 | | - "tests_dte_temp": "vendor/bin/phpunit --configuration=phpunit.xml --no-coverage --testsuite dte_temp" |
| 43 | + "tests-dte": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml --testsuite dte-facturacion", |
| 44 | + "tests-contab": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml --testsuite lce-contabilidad", |
| 45 | + "tests-cobros": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml --testsuite pagos-cobros-mas", |
| 46 | + "tests-readonly": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml --filter 'testBuscarDteTemp|testDescargarPdfDteTemp|testEmitirDteTemp|testEliminarDteTemp|testListarDteTemp|testListarCobrosDteTemp|testBuscarCobroDteTemp'", |
| 47 | + "phpcs-fix": "php-cs-fixer fix -v --config=php-cs-fixer.php .", |
| 48 | + "phpcs-fix-dry-run": "php-cs-fixer fix -v --dry-run --diff --config=php-cs-fixer.php .", |
| 49 | + "phpstan": "phpstan analyse --configuration=phpstan.neon --memory-limit=1G", |
| 50 | + "phpstan-export": "phpstan analyse --configuration=phpstan.neon --level 9 --generate-baseline" |
43 | 51 | } |
44 | 52 | } |
0 commit comments