From 6265b95f473345c154d927a0a85fa6c79835fbb1 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 25 Nov 2026 19:31:11 +0000 Subject: [PATCH 1/7] ci: verify standalone PHP unit suites before frontend setup Refs #70 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .github/workflows/finance-integration.yml | 9 +- docs/TESTING.md | 12 +++ tests/ci/run-unit.sh | 48 ++++++++++ tests/ci/test-run-unit.py | 111 ++++++++++++++++++++++ 4 files changed, 176 insertions(+), 4 deletions(-) create mode 100644 tests/ci/run-unit.sh create mode 100644 tests/ci/test-run-unit.py diff --git a/.github/workflows/finance-integration.yml b/.github/workflows/finance-integration.yml index e50b71b..8e99137 100644 --- a/.github/workflows/finance-integration.yml +++ b/.github/workflows/finance-integration.yml @@ -33,7 +33,12 @@ jobs: uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0 with: php-version: '8.3' + extensions: mbstring coverage: none + - name: Verify standalone PHP gate rejects incomplete runs + run: PYTHONDONTWRITEBYTECODE=1 python3 tests/ci/test-run-unit.py + - name: Verify standalone PHP domain tests + run: bash tests/ci/run-unit.sh - run: npm ci --include=dev - run: npm test - run: python3 tests/ci/coverage-inventory.py @@ -41,10 +46,6 @@ jobs: run: PYTHONDONTWRITEBYTECODE=1 python3 tests/ci/test-report-timing.py - name: Verify synthetic restricted-funding acceptance fixtures (not runtime) run: python3 tests/acceptance/restricted-funding/verify-fixtures.py - - name: Verify exact currency arithmetic (no ledger mutation) - run: | - php tests/unit/currency-conversion.php - php tests/unit/currency-rate-quote.php - run: php tests/openapi/generate.php --check - run: npm run test:openapi - run: npm run build diff --git a/docs/TESTING.md b/docs/TESTING.md index 9b20a84..e38f93b 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -29,6 +29,18 @@ limites com outros trabalhos da máquina. Em falhas, o script registra o estado dos contêineres e sinais de OOM antes da limpeza; não oferece repetição automática de requisições financeiras. +## Testes unitários PHP independentes + +Execute `bash tests/ci/run-unit.sh` na raiz do repositório, com PHP 8.3 +e a extensão `mbstring`. O executor valida as seis suítes de domínio em +processos separados, incluindo o resultado final de cada suíte, sem +instalar o Nextcloud. O job de contratos executa esse gate antes de +instalar as dependências do frontend. Execute também +`python3 tests/ci/test-run-unit.py` para testar a rejeição de suítes ausentes, +incompletas ou com falhas, usando arquivos PHP sintéticos descartáveis. +Essas verificações não substituem os testes de integração no Nextcloud +instalado nem a matriz de bancos de dados. + ## API: PHPUnit/integração e Behat por shards O laboratório executa suites nativas PHP HTTP separadas por regras e diff --git a/tests/ci/run-unit.sh b/tests/ci/run-unit.sh new file mode 100644 index 0000000..5675499 --- /dev/null +++ b/tests/ci/run-unit.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors +# SPDX-License-Identifier: AGPL-3.0-or-later + +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" + +run_suite() { + local suite_name="$1" + local suite_file="$REPO_ROOT/tests/unit/$suite_name" + local expected_regex="$2" + + if [ ! -f "$suite_file" ]; then + echo "FAIL: $suite_name (missing file)" >&2 + exit 1 + fi + + local output + local exit_code=0 + output=$(php "$suite_file" 2>&1) || exit_code=$? + + if [ $exit_code -ne 0 ]; then + echo "FAIL: $suite_name (nonzero exit: $exit_code)" >&2 + echo "$output" >&2 + exit 1 + fi + + if grep -Eq '^FAIL([[:space:]]|:|$)' <<< "$output"; then + printf 'FAIL: %s (reported failure)\n%s\n' "$suite_name" "$output" >&2 + exit 1 + fi + + if ! grep -Eq "$expected_regex" <<< "$output"; then + printf 'FAIL: %s (missing expected summary)\n%s\n' "$suite_name" "$output" >&2 + exit 1 + fi + + printf '%s\n' "$output" +} + +run_suite "currency-conversion.php" '^ALL CHECKS PASSED: [1-9][0-9]*$' +run_suite "currency-rate-quote.php" '^Currency rate quote: [1-9][0-9]* assertions passed$' +run_suite "module-descriptor.php" '^Module descriptor: [1-9][0-9]* assertions passed$' +run_suite "ofx-parser.php" '^OFX parser: 19 positive and negative assertions passed$' +run_suite "saas-financial-capabilities.php" '^SaaS financial capability matrix: [1-9][0-9]* named allow/deny assertions passed$' +run_suite "saas-policy.php" '^SaaS policy resolver: [1-9][0-9]* named restrictive positive and negative assertions passed$' diff --git a/tests/ci/test-run-unit.py b/tests/ci/test-run-unit.py new file mode 100644 index 0000000..6c94569 --- /dev/null +++ b/tests/ci/test-run-unit.py @@ -0,0 +1,111 @@ +#!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors +# SPDX-License-Identifier: AGPL-3.0-or-later + +"""Exercise the standalone unit gate with disposable, real PHP fixtures.""" + +import json +from pathlib import Path +import shutil +import subprocess +import tempfile +import unittest + + +RUNNER = Path(__file__).resolve().with_name("run-unit.sh") +SUMMARIES = { + "currency-conversion.php": "ALL CHECKS PASSED: 30", + "currency-rate-quote.php": "Currency rate quote: 21 assertions passed", + "module-descriptor.php": "Module descriptor: 11 assertions passed", + "ofx-parser.php": "OFX parser: 19 positive and negative assertions passed", + "saas-financial-capabilities.php": "SaaS financial capability matrix: 415 named allow/deny assertions passed", + "saas-policy.php": "SaaS policy resolver: 67 named restrictive positive and negative assertions passed", +} + + +def php_output(message): + return "echo " + json.dumps(message) + " . PHP_EOL;\n" + + +class UnitGateTest(unittest.TestCase): + def run_fixture(self, suite=None, body=None, missing=False): + with tempfile.TemporaryDirectory(prefix="lf-unit-gate-") as directory: + root = Path(directory) + runner = root / "tests/ci/run-unit.sh" + units = root / "tests/unit" + runner.parent.mkdir(parents=True) + units.mkdir() + shutil.copyfile(RUNNER, runner) + for name, summary in SUMMARIES.items(): + (units / name).write_text( + " Date: Wed, 25 Nov 2026 19:34:20 +0000 Subject: [PATCH 2/7] ci: run existing PHP suites directly without additional scripts Refs #70 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .github/workflows/finance-integration.yml | 10 +- docs/TESTING.md | 12 --- tests/ci/run-unit.sh | 48 ---------- tests/ci/test-run-unit.py | 111 ---------------------- 4 files changed, 6 insertions(+), 175 deletions(-) delete mode 100644 tests/ci/run-unit.sh delete mode 100644 tests/ci/test-run-unit.py diff --git a/.github/workflows/finance-integration.yml b/.github/workflows/finance-integration.yml index 8e99137..eff8eb4 100644 --- a/.github/workflows/finance-integration.yml +++ b/.github/workflows/finance-integration.yml @@ -35,10 +35,12 @@ jobs: php-version: '8.3' extensions: mbstring coverage: none - - name: Verify standalone PHP gate rejects incomplete runs - run: PYTHONDONTWRITEBYTECODE=1 python3 tests/ci/test-run-unit.py - - name: Verify standalone PHP domain tests - run: bash tests/ci/run-unit.sh + - run: php tests/unit/currency-conversion.php + - run: php tests/unit/currency-rate-quote.php + - run: php tests/unit/module-descriptor.php + - run: php tests/unit/ofx-parser.php + - run: php tests/unit/saas-financial-capabilities.php + - run: php tests/unit/saas-policy.php - run: npm ci --include=dev - run: npm test - run: python3 tests/ci/coverage-inventory.py diff --git a/docs/TESTING.md b/docs/TESTING.md index e38f93b..9b20a84 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -29,18 +29,6 @@ limites com outros trabalhos da máquina. Em falhas, o script registra o estado dos contêineres e sinais de OOM antes da limpeza; não oferece repetição automática de requisições financeiras. -## Testes unitários PHP independentes - -Execute `bash tests/ci/run-unit.sh` na raiz do repositório, com PHP 8.3 -e a extensão `mbstring`. O executor valida as seis suítes de domínio em -processos separados, incluindo o resultado final de cada suíte, sem -instalar o Nextcloud. O job de contratos executa esse gate antes de -instalar as dependências do frontend. Execute também -`python3 tests/ci/test-run-unit.py` para testar a rejeição de suítes ausentes, -incompletas ou com falhas, usando arquivos PHP sintéticos descartáveis. -Essas verificações não substituem os testes de integração no Nextcloud -instalado nem a matriz de bancos de dados. - ## API: PHPUnit/integração e Behat por shards O laboratório executa suites nativas PHP HTTP separadas por regras e diff --git a/tests/ci/run-unit.sh b/tests/ci/run-unit.sh deleted file mode 100644 index 5675499..0000000 --- a/tests/ci/run-unit.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash -# SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -# SPDX-License-Identifier: AGPL-3.0-or-later - -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" - -run_suite() { - local suite_name="$1" - local suite_file="$REPO_ROOT/tests/unit/$suite_name" - local expected_regex="$2" - - if [ ! -f "$suite_file" ]; then - echo "FAIL: $suite_name (missing file)" >&2 - exit 1 - fi - - local output - local exit_code=0 - output=$(php "$suite_file" 2>&1) || exit_code=$? - - if [ $exit_code -ne 0 ]; then - echo "FAIL: $suite_name (nonzero exit: $exit_code)" >&2 - echo "$output" >&2 - exit 1 - fi - - if grep -Eq '^FAIL([[:space:]]|:|$)' <<< "$output"; then - printf 'FAIL: %s (reported failure)\n%s\n' "$suite_name" "$output" >&2 - exit 1 - fi - - if ! grep -Eq "$expected_regex" <<< "$output"; then - printf 'FAIL: %s (missing expected summary)\n%s\n' "$suite_name" "$output" >&2 - exit 1 - fi - - printf '%s\n' "$output" -} - -run_suite "currency-conversion.php" '^ALL CHECKS PASSED: [1-9][0-9]*$' -run_suite "currency-rate-quote.php" '^Currency rate quote: [1-9][0-9]* assertions passed$' -run_suite "module-descriptor.php" '^Module descriptor: [1-9][0-9]* assertions passed$' -run_suite "ofx-parser.php" '^OFX parser: 19 positive and negative assertions passed$' -run_suite "saas-financial-capabilities.php" '^SaaS financial capability matrix: [1-9][0-9]* named allow/deny assertions passed$' -run_suite "saas-policy.php" '^SaaS policy resolver: [1-9][0-9]* named restrictive positive and negative assertions passed$' diff --git a/tests/ci/test-run-unit.py b/tests/ci/test-run-unit.py deleted file mode 100644 index 6c94569..0000000 --- a/tests/ci/test-run-unit.py +++ /dev/null @@ -1,111 +0,0 @@ -#!/usr/bin/env python3 -# SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -# SPDX-License-Identifier: AGPL-3.0-or-later - -"""Exercise the standalone unit gate with disposable, real PHP fixtures.""" - -import json -from pathlib import Path -import shutil -import subprocess -import tempfile -import unittest - - -RUNNER = Path(__file__).resolve().with_name("run-unit.sh") -SUMMARIES = { - "currency-conversion.php": "ALL CHECKS PASSED: 30", - "currency-rate-quote.php": "Currency rate quote: 21 assertions passed", - "module-descriptor.php": "Module descriptor: 11 assertions passed", - "ofx-parser.php": "OFX parser: 19 positive and negative assertions passed", - "saas-financial-capabilities.php": "SaaS financial capability matrix: 415 named allow/deny assertions passed", - "saas-policy.php": "SaaS policy resolver: 67 named restrictive positive and negative assertions passed", -} - - -def php_output(message): - return "echo " + json.dumps(message) + " . PHP_EOL;\n" - - -class UnitGateTest(unittest.TestCase): - def run_fixture(self, suite=None, body=None, missing=False): - with tempfile.TemporaryDirectory(prefix="lf-unit-gate-") as directory: - root = Path(directory) - runner = root / "tests/ci/run-unit.sh" - units = root / "tests/unit" - runner.parent.mkdir(parents=True) - units.mkdir() - shutil.copyfile(RUNNER, runner) - for name, summary in SUMMARIES.items(): - (units / name).write_text( - " Date: Wed, 25 Nov 2026 19:41:38 +0000 Subject: [PATCH 3/7] ci: separate PHP unit tests into a dedicated workflow Refs #70 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .github/workflows/finance-integration.yml | 7 --- .github/workflows/php-unit.yml | 72 +++++++++++++++++++++++ composer.json | 8 +++ tests/ci/smoke.sh | 30 ---------- 4 files changed, 80 insertions(+), 37 deletions(-) create mode 100644 .github/workflows/php-unit.yml diff --git a/.github/workflows/finance-integration.yml b/.github/workflows/finance-integration.yml index eff8eb4..69dcbce 100644 --- a/.github/workflows/finance-integration.yml +++ b/.github/workflows/finance-integration.yml @@ -33,14 +33,7 @@ jobs: uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0 with: php-version: '8.3' - extensions: mbstring coverage: none - - run: php tests/unit/currency-conversion.php - - run: php tests/unit/currency-rate-quote.php - - run: php tests/unit/module-descriptor.php - - run: php tests/unit/ofx-parser.php - - run: php tests/unit/saas-financial-capabilities.php - - run: php tests/unit/saas-policy.php - run: npm ci --include=dev - run: npm test - run: python3 tests/ci/coverage-inventory.py diff --git a/.github/workflows/php-unit.yml b/.github/workflows/php-unit.yml new file mode 100644 index 0000000..7adb7fd --- /dev/null +++ b/.github/workflows/php-unit.yml @@ -0,0 +1,72 @@ +# Adapted from the LibreCodeCoop organization PHP workflow templates. +# https://github.com/LibreCodeCoop/.github/tree/main/workflow-templates +# +# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors +# SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors +# SPDX-License-Identifier: MIT + +name: PHP unit tests + +on: pull_request + +permissions: + contents: read + +concurrency: + group: php-unit-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + matrix: + runs-on: ubuntu-latest + outputs: + php-versions: ${{ steps.versions.outputs.php-versions }} + steps: + - name: Checkout app + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Get version matrix + id: versions + uses: nextcloud-libraries/nextcloud-version-matrix@71959de73c244b11ecbf4503b87c41d65b0f64ae # v1.3.4 + + unit: + runs-on: ubuntu-latest + needs: matrix + strategy: + fail-fast: false + matrix: + php-versions: ${{ fromJSON(needs.matrix.outputs.php-versions) }} + + name: PHP unit tests (${{ matrix.php-versions }}) + + steps: + - name: Checkout app + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Set up PHP + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring + coverage: none + ini-file: development + + - name: Unit tests + run: composer run test:unit + + summary: + permissions: + contents: none + runs-on: ubuntu-latest + needs: [matrix, unit] + if: always() + name: php-unit-summary + steps: + - name: Summary status + run: | + test "${{ needs.matrix.result }}" = 'success' + test "${{ needs.unit.result }}" = 'success' diff --git a/composer.json b/composer.json index 90a35e4..38b8d56 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,14 @@ }, "scripts": { "lint": "find appinfo lib -type f -name '*.php' -print0 | xargs -0 -n 1 php -l", + "test:unit": [ + "@php tests/unit/currency-conversion.php", + "@php tests/unit/currency-rate-quote.php", + "@php tests/unit/module-descriptor.php", + "@php tests/unit/ofx-parser.php", + "@php tests/unit/saas-financial-capabilities.php", + "@php tests/unit/saas-policy.php" + ], "openapi": "@php tests/openapi/generate.php", "openapi:check": "@php tests/openapi/generate.php --check" } diff --git a/tests/ci/smoke.sh b/tests/ci/smoke.sh index 9eaa1c6..df2c29f 100644 --- a/tests/ci/smoke.sh +++ b/tests/ci/smoke.sh @@ -315,36 +315,6 @@ for script in basic personal-finance agenda-search-sort spaces advanced governan assert_integration_complete "/var/www/html/custom_apps/librefinance/tests/integration/$script.php" done echo "PASS: Native PHP authorization, ledger, group access and concurrency tests on Nextcloud Server master." -# A malformed OFX statement must be rejected before any bank account write. -ofx_unit="$(compose exec -T --user www-data nextcloud php /var/www/html/custom_apps/librefinance/tests/unit/ofx-parser.php)" -printf '%s\n' "$ofx_unit" -grep -Eq '^OFX parser: 19 positive and negative assertions passed$' <<< "$ofx_unit" || { - echo 'FAIL: OFX parser unit assertions did not complete' >&2 - exit 1 -} -# Versioned module descriptors reject malformed contracts and distinguish unsupported future versions. -module_unit="$(compose exec -T --user www-data nextcloud php /var/www/html/custom_apps/librefinance/tests/unit/module-descriptor.php)" -printf '%s\n' "$module_unit" -grep -Eq '^Module descriptor: [1-9][0-9]* assertions passed$' <<< "$module_unit" || { - echo 'FAIL: module descriptor assertions did not complete' >&2 - exit 1 -} -# Named allow/deny matrix, independently of integration role fixtures. -capabilities="$(compose exec -T --user www-data nextcloud php /var/www/html/custom_apps/librefinance/tests/unit/saas-financial-capabilities.php)" -printf '%s\n' "$capabilities" -grep -Eq '^SaaS financial capability matrix: [1-9][0-9]* named allow/deny assertions passed$' <<< "$capabilities" || { - echo 'FAIL: financial capability matrix incomplete' >&2 - exit 1 -} -# Hierarchical policies are not financial ACLs; exercise deny-first and -# multi-scope invariants independently of DB/frontend behavior. -policy_unit="$(compose exec -T --user www-data nextcloud php \ - /var/www/html/custom_apps/librefinance/tests/unit/saas-policy.php)" -printf '%s\n' "$policy_unit" -grep -Eq '^SaaS policy resolver: [0-9]+ named restrictive positive and negative assertions passed$' <<< "$policy_unit" || { - echo 'FAIL: SaaS policy resolver did not complete' >&2 - exit 1 -} for domain_test in banking obligations invoicing payments reports-cash-flow reports-saved import; do assert_integration_complete "/var/www/html/custom_apps/librefinance/tests/integration/domains/$domain_test.php" done From 26c26e386a36fc51c31be6bac0d9d5013422e948 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:11:46 +0000 Subject: [PATCH 4/7] test: migrate standalone domain checks to PHPUnit Refs #70 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .github/workflows/php-unit.yml | 3 + composer.json | 23 +- composer.lock | 1766 ++++++++++++++++++++ composer.lock.license | 2 + docs/FUNCTIONAL-COVERAGE.md | 2 +- docs/TESTING.md | 7 + phpunit.xml | 23 + tests/unit/ExactConversionTest.php | 69 + tests/unit/FinancialCapabilitiesTest.php | 130 ++ tests/unit/ModuleDescriptorTest.php | 60 + tests/unit/OfxStatementParserTest.php | 94 ++ tests/unit/PolicyResolverTest.php | 311 ++++ tests/unit/RateQuoteTest.php | 75 + tests/unit/currency-conversion.php | 66 - tests/unit/currency-rate-quote.php | 44 - tests/unit/module-descriptor.php | 45 - tests/unit/ofx-parser.php | 64 - tests/unit/saas-financial-capabilities.php | 100 -- tests/unit/saas-policy.php | 232 --- 19 files changed, 2556 insertions(+), 560 deletions(-) create mode 100644 composer.lock create mode 100644 composer.lock.license create mode 100644 phpunit.xml create mode 100644 tests/unit/ExactConversionTest.php create mode 100644 tests/unit/FinancialCapabilitiesTest.php create mode 100644 tests/unit/ModuleDescriptorTest.php create mode 100644 tests/unit/OfxStatementParserTest.php create mode 100644 tests/unit/PolicyResolverTest.php create mode 100644 tests/unit/RateQuoteTest.php delete mode 100644 tests/unit/currency-conversion.php delete mode 100644 tests/unit/currency-rate-quote.php delete mode 100644 tests/unit/module-descriptor.php delete mode 100644 tests/unit/ofx-parser.php delete mode 100644 tests/unit/saas-financial-capabilities.php delete mode 100644 tests/unit/saas-policy.php diff --git a/.github/workflows/php-unit.yml b/.github/workflows/php-unit.yml index 7adb7fd..ebac07b 100644 --- a/.github/workflows/php-unit.yml +++ b/.github/workflows/php-unit.yml @@ -55,6 +55,9 @@ jobs: coverage: none ini-file: development + - name: Install Composer dependencies + uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0 + - name: Unit tests run: composer run test:unit diff --git a/composer.json b/composer.json index 38b8d56..fce8fb3 100644 --- a/composer.json +++ b/composer.json @@ -6,21 +6,28 @@ "require": { "php": "^8.3" }, + "require-dev": { + "phpunit/phpunit": "^12.5" + }, + "config": { + "platform": { + "php": "8.3.0" + }, + "sort-packages": true + }, "autoload": { "psr-4": { "OCA\\LibreFinance\\": "lib/" } }, + "autoload-dev": { + "psr-4": { + "OCA\\LibreFinance\\Tests\\Unit\\": "tests/unit/" + } + }, "scripts": { "lint": "find appinfo lib -type f -name '*.php' -print0 | xargs -0 -n 1 php -l", - "test:unit": [ - "@php tests/unit/currency-conversion.php", - "@php tests/unit/currency-rate-quote.php", - "@php tests/unit/module-descriptor.php", - "@php tests/unit/ofx-parser.php", - "@php tests/unit/saas-financial-capabilities.php", - "@php tests/unit/saas-policy.php" - ], + "test:unit": "phpunit --configuration phpunit.xml --testsuite unit --no-coverage", "openapi": "@php tests/openapi/generate.php", "openapi:check": "@php tests/openapi/generate.php --check" } diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..03bff57 --- /dev/null +++ b/composer.lock @@ -0,0 +1,1766 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "da7768ea98319aac476ff7962ee5ae67", + "packages": [], + "packages-dev": [ + { + "name": "myclabs/deep-copy", + "version": "1.14.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.14.0" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + } + ], + "time": "2026-08-11T10:17:44+00:00", + "published-time": "2026-08-11T10:29:20+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.9.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/9e33da9553fe7786f0962b35f4e4ecf01be89def", + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.9.0" + }, + "time": "2026-09-13T18:51:52+00:00", + "published-time": "2026-09-13T18:53:16+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00", + "published-time": "2024-03-03T12:39:44+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00", + "published-time": "2022-02-21T01:04:30+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "12.5.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7440368d94738d54f2c1de24dbd3871793bbb0dd", + "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^5.9.0", + "php": ">=8.3", + "phpunit/php-text-template": "^5.0.1", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.1.2", + "sebastian/lines-of-code": "^4.0.1", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.37" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" + } + ], + "time": "2026-10-03T14:03:50+00:00", + "published-time": "2026-10-03T14:04:33+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a248d1640ab059b075f53a2ef0f9856e864e06b5", + "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.33" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" + } + ], + "time": "2026-08-25T14:40:53+00:00", + "published-time": "2026-08-25T14:41:57+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:58+00:00", + "published-time": "2025-02-07T04:59:09+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "5.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/babab73b7ef9fae406f2eb3ee11323a61caa63d5", + "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.37" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-text-template", + "type": "tidelift" + } + ], + "time": "2026-10-03T04:51:29+00:00", + "published-time": "2026-10-03T04:54:39+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "8.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:38+00:00", + "published-time": "2025-02-07T04:59:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "12.5.45", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "ca97be2931de6a0adf824da12889cbf935a016e9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ca97be2931de6a0adf824da12889cbf935a016e9", + "reference": "ca97be2931de6a0adf824da12889cbf935a016e9", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-filter": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.14.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.8", + "phpunit/php-file-iterator": "^6.0.2", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.1", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.1", + "sebastian/comparator": "^7.1.8", + "sebastian/diff": "^7.0.1", + "sebastian/environment": "^8.1.2", + "sebastian/exporter": "^7.0.3", + "sebastian/global-state": "^8.0.3", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/recursion-context": "^7.0.1", + "sebastian/type": "^6.0.4", + "sebastian/version": "^6.0.2", + "staabm/side-effects-detector": "^1.0.5" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.45" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsoring.html", + "type": "other" + } + ], + "time": "2026-11-19T12:16:09+00:00", + "published-time": "2026-11-19T12:17:59+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "4.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" + } + ], + "time": "2026-05-17T05:29:34+00:00", + "published-time": "2026-05-17T05:30:34+00:00" + }, + { + "name": "sebastian/comparator", + "version": "7.1.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "7c65c1e79836812819705b473a90c12399542485" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7c65c1e79836812819705b473a90c12399542485", + "reference": "7c65c1e79836812819705b473a90c12399542485", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2026-05-21T04:45:25+00:00", + "published-time": "2026-05-21T04:45:36+00:00" + }, + { + "name": "sebastian/complexity", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:25+00:00", + "published-time": "2025-02-07T04:55:36+00:00" + }, + { + "name": "sebastian/diff", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", + "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.33", + "symfony/process": "^7.4.17" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/diff", + "type": "tidelift" + } + ], + "time": "2026-08-25T15:35:54+00:00", + "published-time": "2026-08-25T15:37:16+00:00" + }, + { + "name": "sebastian/environment", + "version": "8.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9d32c685773823b1983e256ae4ecd48a10d6e439", + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.26" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" + } + ], + "time": "2026-05-25T13:40:20+00:00", + "published-time": "2026-05-25T13:40:39+00:00" + }, + { + "name": "sebastian/exporter", + "version": "7.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/recursion-context": "^7.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" + } + ], + "time": "2026-05-20T04:37:17+00:00", + "published-time": "2026-05-20T04:37:31+00:00" + }, + { + "name": "sebastian/global-state", + "version": "8.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b164d3274d6537ab462591c5755f76a8f5b1aae9", + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0.1" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^12.5.28" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" + } + ], + "time": "2026-06-01T15:10:33+00:00", + "published-time": "2026-06-01T15:20:45+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d543b8ef219dcd8da262cbb958639a96bedba10e", + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.7.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/lines-of-code", + "type": "tidelift" + } + ], + "time": "2026-05-19T16:22:07+00:00", + "published-time": "2026-05-19T16:22:47+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:48+00:00", + "published-time": "2025-02-07T04:58:08+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:17+00:00", + "published-time": "2025-02-07T04:58:28+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-13T04:44:59+00:00", + "published-time": "2025-08-13T04:45:10+00:00" + }, + { + "name": "sebastian/type", + "version": "6.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "82ff822c2edc46724be9f7411d3163021f602773" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/82ff822c2edc46724be9f7411d3163021f602773", + "reference": "82ff822c2edc46724be9f7411d3163021f602773", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/6.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" + } + ], + "time": "2026-05-20T06:45:45+00:00", + "published-time": "2026-05-20T06:50:13+00:00" + }, + { + "name": "sebastian/version", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/a8b6643a19ba6c8125a473623e45fb8cbb0e4159", + "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/version", + "type": "tidelift" + } + ], + "time": "2026-11-09T06:30:55+00:00", + "published-time": "2026-11-09T06:31:20+00:00" + }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00", + "published-time": "2024-10-20T05:09:39+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-12-08T11:19:18+00:00", + "published-time": "2025-12-08T11:19:39+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": "^8.3" + }, + "platform-dev": {}, + "platform-overrides": { + "php": "8.3.0" + }, + "plugin-api-version": "2.11.0" +} diff --git a/composer.lock.license b/composer.lock.license new file mode 100644 index 0000000..f8b5362 --- /dev/null +++ b/composer.lock.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/FUNCTIONAL-COVERAGE.md b/docs/FUNCTIONAL-COVERAGE.md index a767b0d..39f142a 100644 --- a/docs/FUNCTIONAL-COVERAGE.md +++ b/docs/FUNCTIONAL-COVERAGE.md @@ -33,7 +33,7 @@ production accounting, fiscal or regulatory operation by this matrix. | Native navigation, localization, dashboard, search and activity | Partial | Core #67 | [navigation](../tests/frontend/navigation.test.mjs), [UX](../tests/e2e/ux-refactor.spec.mjs), [search](../tests/integration/agenda-search-sort.php), [activity](../tests/integration/activity-feed.php) | Portuguese-first UI; translate source strings, switch locale and keyboard/mobile navigation without changing stored values. | | Commercial invoices, generic tax rules and allocations | Partial | Core #46 | [invoicing](../tests/integration/domains/invoicing.php), [payments](../tests/integration/domains/payments.php) | Add quotes/orders, recurring invoices, credit notes and historical invoice-obligation reconciliation; test issue, partial allocation, reversal and duplicate rejection. Commercial issue is not fiscal authorization. | | Payables, receivables and manual settlement | Partial | Core #46 | [obligations](../tests/integration/domains/obligations.php), [payments](../tests/integration/domains/payments.php), [payment methods](../tests/integration/payment-methods.php) | Complete recurring commitments, approval, payment lifecycle and historical links. Verify linked invoices cannot be settled by a duplicate route. | -| Bank accounts, CSV/OFX statement evidence and reconciliation | Partial | Core #47 | [bank identity](../tests/integration/bank-identity.php), [banking](../tests/integration/domains/banking.php), [OFX parser](../tests/unit/ofx-parser.php), [formats policy](../tests/e2e/saas-bank-import-formats.spec.mjs) | Add assisted matching, full transfer/card flows and formats beyond CSV/OFX. Imported statements stay pending until an authorized reconciliation; replay cannot create duplicates. | +| Bank accounts, CSV/OFX statement evidence and reconciliation | Partial | Core #47 | [bank identity](../tests/integration/bank-identity.php), [banking](../tests/integration/domains/banking.php), [OFX parser](../tests/unit/OfxStatementParserTest.php), [formats policy](../tests/e2e/saas-bank-import-formats.spec.mjs) | Add assisted matching, full transfer/card flows and formats beyond CSV/OFX. Imported statements stay pending until an authorized reconciliation; replay cannot create duplicates. | | Bank balance comparison | Partial | Core #47 / #66 | [import](../tests/integration/domains/import.php), [banking](../tests/integration/domains/banking.php) | Source balance snapshots are diagnostic, not postings or certified reconciliation. Compare opening/closing balances and unmatched entries at a common cutoff. | | Realized cash flow, trial balance, simple result, saved reports | Partial | Core #48 | [cash flow](../tests/integration/domains/reports-cash-flow.php), [saved reports](../tests/integration/domains/reports-saved.php) | Formal statements, projected cash flow, complete reporting dimensions and approved immutable snapshots. Compare totals with independently computed journal balances. | | Funding and budget availability | Planned | Core #48 / #74 | No supported budget availability workflow asserted | Given an approved budget and simultaneous requests, verify available balance, scope, exact arithmetic and no overspend. | diff --git a/docs/TESTING.md b/docs/TESTING.md index 9b20a84..83f9c52 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -29,6 +29,13 @@ limites com outros trabalhos da máquina. Em falhas, o script registra o estado dos contêineres e sinais de OOM antes da limpeza; não oferece repetição automática de requisições financeiras. +## Testes unitários PHP + +Na raiz do repositório, execute `composer install` e `composer test:unit`. +A configuração `phpunit.xml` descobre as classes em `tests/unit/`, sem +instalar o Nextcloud. O workflow `php-unit.yml` executa essa suíte na matriz +de versões PHP suportadas pelo aplicativo. + ## API: PHPUnit/integração e Behat por shards O laboratório executa suites nativas PHP HTTP separadas por regras e diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..3d45d07 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,23 @@ + + + + + + tests/unit + + + + + lib + + + diff --git a/tests/unit/ExactConversionTest.php b/tests/unit/ExactConversionTest.php new file mode 100644 index 0000000..e296626 --- /dev/null +++ b/tests/unit/ExactConversionTest.php @@ -0,0 +1,69 @@ + [12345, 2, 2, '1', 12345], + 'zero precision to two' => [100, 0, 2, '0.025', 250], + 'two to three' => [123, 2, 3, '1', 1230], + 'three to zero below half' => [499, 3, 0, '1', 0], + 'three to zero half' => [500, 3, 0, '1', 1], + 'negative half' => [-500, 3, 0, '1', -1], + 'negative below half' => [-499, 3, 0, '1', 0], + 'round carry' => [999, 3, 2, '1', 100], + 'half with fractional rate' => [1, 2, 2, '0.5', 1], + 'negative half rate' => [-1, 2, 2, '0.5', -1], + 'zero with valid rate' => [0, 2, 3, '0.000000000001', 0], + 'large intermediate product' => [9000000000000, 2, 2, '0.999999999999', 8999999999991], + 'exact maximum' => [9000000000000, 2, 2, '1.000000000000', 9000000000000], + 'tiny rate rounded' => [9000000000000, 0, 0, '0.000000000001', 9], + 'negative exact maximum' => [-9000000000000, 3, 3, '1', -9000000000000], + ]; + } + + #[DataProvider('validConversions')] + public function testExactConversion(int $amount, int $from, int $to, string $rate, int $expected): void { + self::assertSame($expected, ExactConversion::convert($amount, $from, $to, $rate)); + } + + public static function invalidConversions(): array { + return [ + 'source above bound' => [9000000000001, 2, 2, '1', 'invalid_currency_amount'], + 'minimum PHP integer' => [PHP_INT_MIN, 2, 2, '1', 'invalid_currency_amount'], + 'negative precision' => [1, -1, 2, '1', 'invalid_currency_amount'], + 'unsupported precision' => [1, 2, 4, '1', 'invalid_currency_amount'], + 'zero rate' => [0, 2, 2, '0.000', 'invalid_exchange_rate'], + 'negative rate' => [1, 2, 2, '-1', 'invalid_exchange_rate'], + 'scientific rate' => [1, 2, 2, '1e2', 'invalid_exchange_rate'], + 'locale comma' => [1, 2, 2, '1,2', 'invalid_exchange_rate'], + 'leading zero' => [1, 2, 2, '01', 'invalid_exchange_rate'], + 'whitespace' => [1, 2, 2, '1 ', 'invalid_exchange_rate'], + 'too many decimals' => [1, 2, 2, '1.0000000000001', 'invalid_exchange_rate'], + 'too many whole digits' => [1, 2, 2, '1000000000000', 'invalid_exchange_rate'], + 'positive overflow' => [9000000000000, 2, 2, '1.000000000001', 'currency_amount_overflow'], + 'negative overflow' => [-9000000000000, 2, 2, '2', 'currency_amount_overflow'], + 'precision overflow' => [9000000000000, 0, 3, '1', 'currency_amount_overflow'], + ]; + } + + #[DataProvider('invalidConversions')] + public function testInvalidConversion(int $amount, int $from, int $to, string $rate, string $error): void { + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\A' . preg_quote($error, '/') . '\z/'); + ExactConversion::convert($amount, $from, $to, $rate); + } +} diff --git a/tests/unit/FinancialCapabilitiesTest.php b/tests/unit/FinancialCapabilitiesTest.php new file mode 100644 index 0000000..e5fb251 --- /dev/null +++ b/tests/unit/FinancialCapabilitiesTest.php @@ -0,0 +1,130 @@ + self::READER, + 'auditor' => [...self::READER, 'audit.read', 'reports.export'], + 'operator' => [...self::READER, ...self::OPERATOR, 'reports.export'], + 'manager' => [...self::READER, ...self::OPERATOR, ...self::MANAGER, 'audit.read', 'reports.export'], + 'owner' => [...self::READER, ...self::OPERATOR, ...self::MANAGER, 'audit.read', 'reports.export', 'roles.manage'], + 'instance_admin' => [], + 'group_subadmin' => [], + 'unknown' => [], + ]; + + public static function explicitPermissions(): iterable { + foreach ([ + ['viewer', 'ledger.read', true], + ['viewer', 'ledger.post', false], + ['viewer', 'accounts.manage', false], + ['auditor', 'ledger.read', true], + ['auditor', 'audit.read', true], + ['auditor', 'ledger.post', false], + ['auditor', 'ledger.reverse', false], + ['operator', 'ledger.post', true], + ['operator', 'ledger.reverse', false], + ['operator', 'roles.manage', false], + ['manager', 'ledger.reverse', true], + ['manager', 'roles.read', true], + ['manager', 'roles.manage', false], + ['owner', 'roles.manage', true], + ['owner', 'bank.reconcile', true], + // Administrative Nextcloud identities are never financial roles. + ['instance_admin', 'ledger.read', false], + ['group_subadmin', 'ledger.read', false], + ['', 'ledger.read', false], + ] as [$role, $capability, $allowed]) { + yield "$role:$capability" => [$role, $capability, $allowed]; + } + } + + #[DataProvider('explicitPermissions')] + public function testExplicitPermissions(string $role, string $capability, bool $allowed): void { + self::assertSame($allowed, Access::allows($role, $capability)); + } + + public function testAllRegistryCapabilitiesAreCovered(): void { + $all = Access::all(); + $expected = self::MATRIX['owner']; + sort($all); + sort($expected); + + self::assertSame($expected, $all); + } + + public static function permissionMatrix(): iterable { + // The expected operation list is independently specified, not derived from Access::all(). + foreach (self::MATRIX as $role => $allowed) { + foreach (self::MATRIX['owner'] as $capability) { + yield "$role:$capability" => [$role, $capability, in_array($capability, $allowed, true)]; + } + } + } + + #[DataProvider('permissionMatrix')] + public function testPermissionMatrix(string $role, string $capability, bool $allowed): void { + self::assertSame($allowed, Access::allows($role, $capability)); + } + + public static function roleCapabilities(): iterable { + foreach (self::MATRIX as $role => $allowed) { + yield $role => [$role, $allowed]; + } + } + + #[DataProvider('roleCapabilities')] + public function testExactCapabilityList(string $role, array $allowed): void { + $actual = Access::forRole($role); + sort($actual); + sort($allowed); + + self::assertSame($allowed, $actual); + } + + public function testViewerCannotPost(): void { + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Apermission_denied\z/'); + Access::requireAllowed('viewer', 'ledger.post'); + } + + public function testUnknownCapabilityFailsClosed(): void { + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Aunknown_financial_capability\z/'); + Access::allows('owner', 'ledger.god_mode'); + } + + public function testOnlyOwnerCanGrantRoles(): void { + self::assertContains('roles.manage', Access::forRole('owner')); + self::assertNotContains('roles.manage', Access::forRole('manager')); + } +} diff --git a/tests/unit/ModuleDescriptorTest.php b/tests/unit/ModuleDescriptorTest.php new file mode 100644 index 0000000..677defe --- /dev/null +++ b/tests/unit/ModuleDescriptorTest.php @@ -0,0 +1,60 @@ +contractVersion); + self::assertTrue($descriptor->isCompatible()); + } + + public function testExplicitVersionPreservesPermissionFloor(): void { + $descriptor = new ModuleDescriptor('librefinance_example', 'Example', 'Synthetic module', 'librefinance_example.page.index', 'manager', 1); + + self::assertTrue($descriptor->isCompatible()); + self::assertSame('manager', $descriptor->requiredRole); + } + + public function testFutureVersionIsIncompatible(): void { + $descriptor = new ModuleDescriptor('librefinance_example', 'Example', 'Synthetic module', 'librefinance_example.page.index', 'viewer', 2); + + self::assertSame(2, $descriptor->contractVersion); + self::assertFalse($descriptor->isCompatible()); + } + + public function testBuiltInRoute(): void { + $descriptor = new ModuleDescriptor('librefinance_reports', 'Reports', 'Synthetic reports', 'librefinance.page.index'); + + self::assertTrue($descriptor->isCompatible()); + } + + public static function invalidDescriptors(): array { + return [ + 'zero version' => [['librefinance_example', 'Example', 'Description', 'librefinance_example.page.index', 'viewer', 0]], + 'negative version' => [['librefinance_example', 'Example', 'Description', 'librefinance_example.page.index', 'viewer', -1]], + 'version overflow' => [['librefinance_example', 'Example', 'Description', 'librefinance_example.page.index', 'viewer', 65536]], + 'foreign app ID' => [['unrelated_app', 'Example', 'Description', 'unrelated_app.page.index']], + 'foreign app route' => [['librefinance_example', 'Example', 'Description', 'librefinance_other.page.index']], + 'invalid permission floor' => [['librefinance_example', 'Example', 'Description', 'librefinance_example.page.index', 'owner']], + 'missing label' => [['librefinance_example', '', 'Description', 'librefinance_example.page.index']], + ]; + } + + #[DataProvider('invalidDescriptors')] + public function testRejectsInvalidDescriptor(array $arguments): void { + $this->expectException(InvalidArgumentException::class); + new ModuleDescriptor(...$arguments); + } +} diff --git a/tests/unit/OfxStatementParserTest.php b/tests/unit/OfxStatementParserTest.php new file mode 100644 index 0000000..8211768 --- /dev/null +++ b/tests/unit/OfxStatementParserTest.php @@ -0,0 +1,94 @@ +BRL +20261120 +20261120124500[-3:BRT] +-25.90 +ofx-id-one +Pagamento de energia + +20261122 +150,00 +ofx-id-two +Recebimento de cliente + +OFX; + + private const XML = <<<'OFX' + +BRL +202611221.05 +id<123Loja & Cia + +OFX; + + public function testParsesSgml(): void { + $statement = OfxStatementParser::parse(self::SGML); + + self::assertSame('BRL', $statement['currency']); + self::assertCount(2, $statement['rows']); + self::assertSame(-2590, $statement['rows'][0]['amount_minor']); + self::assertSame(15000, $statement['rows'][1]['amount_minor']); + self::assertSame('2026-11-20', $statement['rows'][0]['date']); + } + + public function testParsesXml(): void { + $statement = OfxStatementParser::parse(self::XML); + + self::assertSame(105, $statement['rows'][0]['amount_minor']); + self::assertSame('Loja & Cia', $statement['rows'][0]['description']); + self::assertStringStartsWith('ofx-', $statement['rows'][0]['id']); + } + + public function testFractionalSecondsWithTimezone(): void { + $statement = OfxStatementParser::parse(str_replace('20261120124500[-3:BRT]', '20261120124500.000[-3:BRT]', self::SGML)); + + self::assertSame('2026-11-20', $statement['rows'][0]['date']); + } + + public function testAdditionalZeroDecimalPlaces(): void { + $statement = OfxStatementParser::parse(str_replace('-25.90', '-25.900000', self::SGML)); + + self::assertSame(-2590, $statement['rows'][0]['amount_minor']); + } + + public static function invalidStatements(): array { + return [ + 'fractional cent' => [str_replace('-25.90', '-25.900001', self::SGML)], + 'truncated time' => [str_replace('20261120124500[-3:BRT]', '202611201245[-3:BRT]', self::SGML)], + 'invalid time' => [str_replace('20261120124500[-3:BRT]', '20261120999999[-3:BRT]', self::SGML)], + 'invalid date' => [str_replace('20261120', '20260230', self::SGML)], + 'zero amount' => [str_replace('150,00', '0.00', self::SGML)], + 'duplicate FITID' => [str_replace('ofx-id-two', 'ofx-id-one', self::SGML)], + 'duplicate transaction list' => [str_replace('', '', self::SGML)], + 'external entity declaration' => [']>' . self::SGML], + 'oversized statement' => [str_repeat('x', 262145)], + ]; + } + + #[DataProvider('invalidStatements')] + public function testRejectsInvalidStatement(string $statement): void { + $this->expectException(DomainException::class); + OfxStatementParser::parse($statement); + } +} diff --git a/tests/unit/PolicyResolverTest.php b/tests/unit/PolicyResolverTest.php new file mode 100644 index 0000000..43ff8c1 --- /dev/null +++ b/tests/unit/PolicyResolverTest.php @@ -0,0 +1,311 @@ +registry = new PolicyRegistry(); + $this->resolver = new PolicyResolver(); + } + + private static function layer(string $scope, mixed $value): array { + return ['scope' => $scope, 'value' => $value]; + } + + public function testExternalSharingDefaultFailsClosed(): void { + $result = $this->resolver->resolve($this->registry->get('externalSharing.enabled'), []); + + self::assertFalse($result['effectiveValue']); + self::assertSame('default', $result['sourceScope']); + } + + public function testChildCannotBypassParentDenial(): void { + $result = $this->resolver->resolve($this->registry->get('externalSharing.enabled'), [ + self::layer('instance', true), self::layer('environment', false), self::layer('workspace', true), + ]); + + self::assertFalse($result['effectiveValue']); + self::assertSame('environment', $result['blockedBy']); + self::assertSame('environment', $result['sourceScope']); + self::assertSame([false], $result['allowedValues']); + self::assertFalse($result['editableByCurrentActor']); + } + + public function testExplicitParentAllowsChild(): void { + $result = $this->resolver->resolve($this->registry->get('externalSharing.enabled'), [ + self::layer('instance', true), self::layer('environment', true), + ]); + + self::assertTrue($result['effectiveValue']); + self::assertSame('instance', $result['sourceScope']); + self::assertSame([false, true], $result['allowedValues']); + } + + public function testMissingInstanceOptInCannotBeCircumvented(): void { + $result = $this->resolver->resolve($this->registry->get('externalSharing.enabled'), [ + self::layer('environment', true), + ]); + + self::assertFalse($result['effectiveValue']); + self::assertSame('default', $result['blockedBy']); + self::assertSame('default', $result['sourceScope']); + } + + public function testChildCeilingTightens(): void { + $result = $this->resolver->resolve($this->registry->get('workspaces.maxCount'), [ + self::layer('instance', 8), self::layer('environment', 3), + ]); + + self::assertSame(3, $result['effectiveValue']); + self::assertSame('environment', $result['sourceScope']); + self::assertSame(3, $result['maxAllowed']); + } + + public function testChildCeilingCannotWiden(): void { + $result = $this->resolver->resolve($this->registry->get('workspaces.maxCount'), [ + self::layer('instance', 2), self::layer('environment', 10), + ]); + + self::assertSame(2, $result['effectiveValue']); + self::assertSame('instance', $result['blockedBy']); + } + + public function testZeroCeilingDenies(): void { + $result = $this->resolver->resolve($this->registry->get('workspaces.maxCount'), [ + self::layer('instance', 0), + ]); + + self::assertSame('instance', $result['blockedBy']); + } + + private function regionPolicy(): PolicyDefinition { + return new PolicyDefinition('regions.allowed', 'allowed_set', + ['instance', 'environment', 'workspace'], ['BR', 'PT', 'US'], true); + } + + public function testSetsOnlyIntersect(): void { + $result = $this->resolver->resolve($this->regionPolicy(), [ + self::layer('instance', ['BR', 'PT', 'US']), + self::layer('environment', ['BR', 'PT', 'XX']), + self::layer('workspace', ['PT', 'FR']), + ]); + + self::assertSame(['PT'], $result['effectiveValue']); + self::assertSame('workspace', $result['sourceScope']); + } + + public function testEqualIntersectionRetainsAncestorOrderAndSource(): void { + $result = $this->resolver->resolve($this->regionPolicy(), [ + self::layer('instance', ['BR', 'PT', 'US']), + self::layer('environment', ['BR', 'PT']), + self::layer('workspace', ['PT', 'BR']), + ]); + + self::assertSame(['BR', 'PT'], $result['effectiveValue']); + self::assertSame('environment', $result['sourceScope']); + } + + public function testEmptyIntersectionDenies(): void { + $result = $this->resolver->resolve($this->regionPolicy(), [ + self::layer('instance', ['BR']), self::layer('environment', ['US']), + ]); + + self::assertSame([], $result['effectiveValue']); + self::assertSame('environment', $result['blockedBy']); + self::assertSame('environment', $result['sourceScope']); + } + + public function testInvalidScopeDefinition(): void { + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Ainvalid_policy_scopes\z/'); + new PolicyDefinition('a.b', 'boolean', ['environment', 'instance'], false, true); + } + + public function testInstanceOnlyPolicyRejectsChildEvenIfDeclared(): void { + $policy = new PolicyDefinition('modules.enabled', 'boolean', + ['instance', 'environment'], true, false); + + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Apolicy_override_forbidden\z/'); + $this->resolver->resolve($policy, [ + self::layer('instance', true), self::layer('environment', false), + ]); + } + + public function testRegistryRejectsUnknownKey(): void { + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Aunknown_policy_key\z/'); + $this->registry->get('financial.allAdmin'); + } + + public function testBankFormatDefaultsDoNotGrantPersonalAccess(): void { + $policy = $this->registry->get('banking.allowedImportFormats'); + + self::assertSame(['csv', 'ofx'], $this->resolver->resolve($policy, [])['effectiveValue']); + self::assertFalse($policy->supports('user')); + } + + public function testBankFormatIntersectionCannotWidenEnvironment(): void { + $result = $this->resolver->resolve($this->registry->get('banking.allowedImportFormats'), [ + self::layer('instance', ['csv', 'ofx']), + self::layer('environment', ['ofx']), + self::layer('workspace', ['csv', 'ofx']), + ]); + + self::assertSame(['ofx'], $result['effectiveValue']); + self::assertSame('environment', $result['sourceScope']); + } + + public function testEmptyBankFormatIntersectionDeniesAll(): void { + $result = $this->resolver->resolve($this->registry->get('banking.allowedImportFormats'), [ + self::layer('instance', ['ofx']), self::layer('environment', ['csv']), + ]); + + self::assertSame([], $result['effectiveValue']); + } + + public static function optionalModulePolicies(): array { + return [ + 'reports' => ['modules.reports.enabled'], + 'fiscal drafts' => ['regional.nfseDrafts.enabled'], + ]; + } + + #[DataProvider('optionalModulePolicies')] + public function testModuleDefaultsAndEnvironmentRestrictions(string $key): void { + $policy = $this->registry->get($key); + self::assertTrue($this->resolver->resolve($policy, [])['effectiveValue']); + self::assertFalse($policy->supports('user')); + + $result = $this->resolver->resolve($policy, [ + self::layer('instance', true), self::layer('environment', false), self::layer('workspace', true), + ]); + self::assertFalse($result['effectiveValue']); + self::assertSame('environment', $result['blockedBy']); + } + + public function testDashboardDefaultAndUserScope(): void { + $policy = $this->registry->get('dashboard.kpis.enabled'); + + self::assertTrue($policy->supports('user')); + self::assertTrue($this->resolver->resolve($policy, [])['effectiveValue']); + } + + public function testUserMayHideOwnDashboardCards(): void { + $result = $this->resolver->resolve($this->registry->get('dashboard.kpis.enabled'), [ + self::layer('instance', true), self::layer('environment', true), + self::layer('workspace', true), self::layer('user', false), + ]); + + self::assertFalse($result['effectiveValue']); + self::assertSame('user', $result['sourceScope']); + } + + public function testUserCannotBypassWorkspaceDashboardRestriction(): void { + $result = $this->resolver->resolve($this->registry->get('dashboard.kpis.enabled'), [ + self::layer('instance', true), self::layer('environment', true), + self::layer('workspace', false), self::layer('user', true), + ]); + + self::assertFalse($result['effectiveValue']); + self::assertSame('workspace', $result['blockedBy']); + self::assertSame('workspace', $result['sourceScope']); + } + + public static function invalidResolutions(): array { + return [ + 'instance-only policy rejects environment' => ['environments.enabled', [ + self::layer('instance', true), self::layer('environment', true), + ], 'unsupported_scope'], + 'malformed flag' => ['externalSharing.enabled', [ + self::layer('instance', 'false'), + ], 'invalid_policy_value'], + 'duplicate instance' => ['externalSharing.enabled', [ + self::layer('instance', true), self::layer('instance', false), + ], 'invalid_policy_order'], + 'reverse order' => ['externalSharing.enabled', [ + self::layer('workspace', false), self::layer('environment', true), + ], 'invalid_policy_order'], + 'duplicate environment' => ['externalSharing.enabled', [ + self::layer('environment', true), self::layer('environment', false), + ], 'invalid_policy_order'], + 'negative quota' => ['workspaces.maxCount', [ + self::layer('instance', -1), + ], 'invalid_policy_value'], + 'noninteger quota' => ['workspaces.maxCount', [ + self::layer('instance', 1.1), + ], 'invalid_policy_value'], + 'unsafe JSON integer quota' => ['workspaces.maxCount', [ + self::layer('instance', 9007199254740992), + ], 'invalid_policy_value'], + 'workspace cannot inject bank format' => ['banking.allowedImportFormats', [ + self::layer('instance', ['csv', 'ofx']), self::layer('workspace', ['csv', 'xml']), + ], 'invalid_policy_value'], + 'user cannot change external sharing' => ['externalSharing.enabled', [ + self::layer('instance', true), self::layer('user', true), + ], 'unsupported_scope'], + 'user cannot change company count' => ['workspaces.maxCount', [ + self::layer('instance', 2), self::layer('user', 99), + ], 'unsupported_scope'], + ]; + } + + #[DataProvider('invalidResolutions')] + public function testRejectsInvalidResolution(string $key, array $layers, string $error): void { + $policy = $this->registry->get($key); + + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\A' . preg_quote($error, '/') . '\z/'); + $this->resolver->resolve($policy, $layers); + } + + public static function invalidRegionLayers(): array { + return [ + 'duplicate set value' => [[self::layer('instance', ['BR', 'BR'])], 'invalid_policy_value'], + 'nested set value' => [[self::layer('instance', [['BR']])], 'invalid_policy_value'], + 'unsupported user scope' => [[self::layer('instance', ['BR']), self::layer('user', ['BR'])], 'unsupported_scope'], + ]; + } + + #[DataProvider('invalidRegionLayers')] + public function testRejectsInvalidRegionLayers(array $layers, string $error): void { + $policy = $this->regionPolicy(); + + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\A' . preg_quote($error, '/') . '\z/'); + $this->resolver->resolve($policy, $layers); + } + + public static function invalidPolicyValues(): array { + return [ + 'unknown bank format' => ['banking.allowedImportFormats', ['xml']], + 'nested bank format' => ['banking.allowedImportFormats', ['csv', ['ofx']]], + 'report string flag' => ['modules.reports.enabled', 'true'], + 'fiscal draft string flag' => ['regional.nfseDrafts.enabled', 'false'], + ]; + } + + #[DataProvider('invalidPolicyValues')] + public function testRejectsInvalidPolicyValues(string $key, mixed $value): void { + $policy = $this->registry->get($key); + + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Ainvalid_policy_value\z/'); + $policy->assertValue($value); + } +} diff --git a/tests/unit/RateQuoteTest.php b/tests/unit/RateQuoteTest.php new file mode 100644 index 0000000..6c38e9c --- /dev/null +++ b/tests/unit/RateQuoteTest.php @@ -0,0 +1,75 @@ +sourcePrecision); + self::assertSame(3, $quote->targetPrecision); + self::assertSame('0.002', $quote->rate); + self::assertSame(2000, $quote->convert(1000)); + self::assertSame(-2000, $quote->convert(-1000)); + } + + public function testEquivalentDecimalFingerprint(): void { + $quote = new RateQuote(...self::QUOTE); + $copy = new RateQuote(...array_replace(self::QUOTE, [3 => '0.002'])); + + self::assertSame($quote->fingerprint(), $copy->fingerprint()); + } + + public static function fingerprintChanges(): array { + return [ + 'workspace' => [0, 2], + 'rate' => [3, '0.003'], + 'date' => [4, '2026-11-25'], + 'source' => [5, 'imported'], + 'reference' => [6, 'synthetic-b'], + ]; + } + + #[DataProvider('fingerprintChanges')] + public function testFingerprintDistinguishesFields(int $index, int|string $value): void { + $quote = new RateQuote(...self::QUOTE); + $other = new RateQuote(...array_replace(self::QUOTE, [$index => $value])); + + self::assertNotSame($quote->fingerprint(), $other->fingerprint()); + } + + public static function invalidQuoteFields(): array { + return [ + 'zero workspace' => [0, 0], + 'lowercase currency' => [1, 'jpy'], + 'unknown currency' => [1, 'ZZZ'], + 'identical currencies' => [2, 'JPY'], + 'zero rate' => [3, '0'], + 'scientific notation' => [3, '1e-3'], + 'invalid date' => [4, '2026-02-30'], + 'zero year' => [4, '0000-01-01'], + 'unknown source' => [5, 'online'], + 'empty reference' => [6, ''], + 'URL reference' => [6, 'https://example.invalid'], + 'long reference' => [6, str_repeat('x', 97)], + ]; + } + + #[DataProvider('invalidQuoteFields')] + public function testRejectsInvalidFields(int $index, int|string $value): void { + $this->expectException(DomainException::class); + new RateQuote(...array_replace(self::QUOTE, [$index => $value])); + } +} diff --git a/tests/unit/currency-conversion.php b/tests/unit/currency-conversion.php deleted file mode 100644 index e122c1a..0000000 --- a/tests/unit/currency-conversion.php +++ /dev/null @@ -1,66 +0,0 @@ - [12345, 2, 2, '1', 12345], - 'zero precision to two' => [100, 0, 2, '0.025', 250], - 'two to three' => [123, 2, 3, '1', 1230], - 'three to zero below half' => [499, 3, 0, '1', 0], - 'three to zero half' => [500, 3, 0, '1', 1], - 'negative half' => [-500, 3, 0, '1', -1], - 'negative below half' => [-499, 3, 0, '1', 0], - 'round carry' => [999, 3, 2, '1', 100], - 'half with fractional rate' => [1, 2, 2, '0.5', 1], - 'negative half rate' => [-1, 2, 2, '0.5', -1], - 'zero with valid rate' => [0, 2, 3, '0.000000000001', 0], - 'large intermediate product' => [9000000000000, 2, 2, '0.999999999999', 8999999999991], - 'exact maximum' => [9000000000000, 2, 2, '1.000000000000', 9000000000000], - 'tiny rate rounded' => [9000000000000, 0, 0, '0.000000000001', 9], - 'negative exact maximum' => [-9000000000000, 3, 3, '1', -9000000000000], -]; -foreach ($valid as $name => [$amount, $from, $to, $rate, $expected]) { - $actual = ExactConversion::convert($amount, $from, $to, $rate); - if ($actual !== $expected) { - throw new RuntimeException($name . ': expected ' . $expected . ', got ' . $actual); - } - echo "PASS: $name\n"; -} -$invalid = [ - 'source above bound' => [9000000000001, 2, 2, '1', 'invalid_currency_amount'], - 'minimum PHP integer' => [PHP_INT_MIN, 2, 2, '1', 'invalid_currency_amount'], - 'negative precision' => [1, -1, 2, '1', 'invalid_currency_amount'], - 'unsupported precision' => [1, 2, 4, '1', 'invalid_currency_amount'], - 'zero rate' => [0, 2, 2, '0.000', 'invalid_exchange_rate'], - 'negative rate' => [1, 2, 2, '-1', 'invalid_exchange_rate'], - 'scientific rate' => [1, 2, 2, '1e2', 'invalid_exchange_rate'], - 'locale comma' => [1, 2, 2, '1,2', 'invalid_exchange_rate'], - 'leading zero' => [1, 2, 2, '01', 'invalid_exchange_rate'], - 'whitespace' => [1, 2, 2, '1 ', 'invalid_exchange_rate'], - 'too many decimals' => [1, 2, 2, '1.0000000000001', 'invalid_exchange_rate'], - 'too many whole digits' => [1, 2, 2, '1000000000000', 'invalid_exchange_rate'], - 'positive overflow' => [9000000000000, 2, 2, '1.000000000001', 'currency_amount_overflow'], - 'negative overflow' => [-9000000000000, 2, 2, '2', 'currency_amount_overflow'], - 'precision overflow' => [9000000000000, 0, 3, '1', 'currency_amount_overflow'], -]; -foreach ($invalid as $name => [$amount, $from, $to, $rate, $expected]) { - try { - ExactConversion::convert($amount, $from, $to, $rate); - throw new RuntimeException($name . ': expected an exception'); - } catch (DomainException $e) { - if ($e->getMessage() !== $expected) { - throw new RuntimeException($name . ': incorrect error ' . $e->getMessage()); - } - } - echo "PASS: $name\n"; -} -echo 'ALL CHECKS PASSED: ' . (count($valid) + count($invalid)) . "\n"; diff --git a/tests/unit/currency-rate-quote.php b/tests/unit/currency-rate-quote.php deleted file mode 100644 index 9b58a58..0000000 --- a/tests/unit/currency-rate-quote.php +++ /dev/null @@ -1,44 +0,0 @@ -sourcePrecision === 0 && $q->targetPrecision === 3, 'Explicit currency scales'); -verifyQuote($q->rate === '0.002' && $q->convert(1000) === 2000, 'Canonical exact conversion'); -verifyQuote($q->convert(-1000) === -2000, 'Signed conversion'); -$copy = new RateQuote(...array_replace($args, [3 => '0.002'])); -verifyQuote($copy->fingerprint() === $q->fingerprint(), 'Equivalent decimal fingerprint'); -foreach ([0 => 2, 3 => '0.003', 4 => '2026-11-25', 5 => 'imported', 6 => 'synthetic-b'] as $i => $v) { - $other = new RateQuote(...array_replace($args, [$i => $v])); - verifyQuote($other->fingerprint() !== $q->fingerprint(), 'Fingerprint distinguishes field ' . $i); -} -foreach ([ - [0, 0], [1, 'jpy'], [1, 'ZZZ'], [2, 'JPY'], [3, '0'], [3, '1e-3'], - [4, '2026-02-30'], [4, '0000-01-01'], [5, 'online'], [6, ''], - [6, 'https://example.invalid'], [6, str_repeat('x', 97)], -] as [$i, $v]) { - try { - new RateQuote(...array_replace($args, [$i => $v])); - throw new RuntimeException('Invalid field accepted: ' . $i); - } catch (DomainException $e) { - verifyQuote(true, 'Invalid quote field rejected ' . $i); - } -} -echo "Currency rate quote: $checks assertions passed\n"; diff --git a/tests/unit/module-descriptor.php b/tests/unit/module-descriptor.php deleted file mode 100644 index af2b2fd..0000000 --- a/tests/unit/module-descriptor.php +++ /dev/null @@ -1,45 +0,0 @@ -contractVersion === 1 && $legacy->isCompatible(), 'Legacy constructor is compatible v1'); -$explicit = new ModuleDescriptor('librefinance_example', 'Example', 'Synthetic module', 'librefinance_example.page.index', 'manager', 1); -verify($explicit->isCompatible() && $explicit->requiredRole === 'manager', 'Explicit v1 preserves permission floor'); -$future = new ModuleDescriptor('librefinance_example', 'Example', 'Synthetic module', 'librefinance_example.page.index', 'viewer', 2); -verify($future->contractVersion === 2 && !$future->isCompatible(), 'Future valid descriptor remains incompatible'); -$internal = new ModuleDescriptor('librefinance_reports', 'Reports', 'Synthetic reports', 'librefinance.page.index'); -verify($internal->isCompatible(), 'Built-in route and default version preserved'); -foreach ([0, -1, 65536] as $version) { - rejected(fn() => new ModuleDescriptor('librefinance_example', 'Example', 'Description', 'librefinance_example.page.index', 'viewer', $version), 'Invalid contract version ' . $version); -} -rejected(fn() => new ModuleDescriptor('unrelated_app', 'Example', 'Description', 'unrelated_app.page.index'), 'Foreign app ID'); -rejected(fn() => new ModuleDescriptor('librefinance_example', 'Example', 'Description', 'librefinance_other.page.index'), 'Foreign app route'); -rejected(fn() => new ModuleDescriptor('librefinance_example', 'Example', 'Description', 'librefinance_example.page.index', 'owner'), 'Invalid permission floor'); -rejected(fn() => new ModuleDescriptor('librefinance_example', '', 'Description', 'librefinance_example.page.index'), 'Missing label'); -echo "Module descriptor: $checks assertions passed\n"; diff --git a/tests/unit/ofx-parser.php b/tests/unit/ofx-parser.php deleted file mode 100644 index 51bd8ec..0000000 --- a/tests/unit/ofx-parser.php +++ /dev/null @@ -1,64 +0,0 @@ -BRL -20261120 -20261120124500[-3:BRT] --25.90 -ofx-id-one -Pagamento de energia - -20261122 -150,00 -ofx-id-two -Recebimento de cliente - -OFX; -$one=OfxStatementParser::parse($body); -check($one['currency']==='BRL','Currency'); -check(count($one['rows'])===2,'Count'); -check($one['rows'][0]['amount_minor']===-2590,'Negative cents'); -check($one['rows'][1]['amount_minor']===15000,'Comma decimal'); -check($one['rows'][0]['date']==='2026-11-20','Time zone'); -$xml=<<<'OFX' - -BRL -202611221.05 -id<123Loja & Cia - -OFX; -$two=OfxStatementParser::parse($xml); -check($two['rows'][0]['amount_minor']===105,'XML cents'); -check($two['rows'][0]['description']==='Loja & Cia','XML escaped text'); -check(str_starts_with($two['rows'][0]['id'],'ofx-'),'Hashed weird FITID'); -$fractionDate = str_replace('20261120124500[-3:BRT]', '20261120124500.000[-3:BRT]', $body); -check(OfxStatementParser::parse($fractionDate)['rows'][0]['date']==='2026-11-20', - 'Fractional seconds with timezone'); -$zeros = str_replace('-25.90','-25.900000',$body); -check(OfxStatementParser::parse($zeros)['rows'][0]['amount_minor']===-2590, - 'Extra zero decimal places are safe'); -reject(str_replace('-25.90','-25.900001',$body)); -reject(str_replace('20261120124500[-3:BRT]','202611201245[-3:BRT]',$body)); -reject(str_replace('20261120124500[-3:BRT]','20261120999999[-3:BRT]',$body)); -reject(str_replace('20261120','20260230',$body)); -reject(str_replace('150,00','0.00',$body)); -reject(str_replace('ofx-id-two','ofx-id-one',$body)); -reject(str_replace('','',$body)); -reject(']>' . $body); -reject(str_repeat('x',262145)); -echo "OFX parser: 19 positive and negative assertions passed\n"; diff --git a/tests/unit/saas-financial-capabilities.php b/tests/unit/saas-financial-capabilities.php deleted file mode 100644 index 4ce6b07..0000000 --- a/tests/unit/saas-financial-capabilities.php +++ /dev/null @@ -1,100 +0,0 @@ - $reader, - 'auditor' => [...$reader, 'audit.read', 'reports.export'], - 'operator' => [...$reader, ...$operator, 'reports.export'], - 'manager' => [...$reader, ...$operator, ...$manager, 'audit.read', 'reports.export'], - 'owner' => [...$reader, ...$operator, ...$manager, 'audit.read', 'reports.export', 'roles.manage'], - 'instance_admin' => [], 'group_subadmin' => [], 'unknown' => [], -]; -$all = Access::all(); -$expected = $matrix['owner']; -sort($all); -sort($expected); -expect($all === $expected, true, 'all registry capabilities explicitly covered'); -foreach ($matrix as $role => $allowed) { - foreach ($all as $capability) { - expect(Access::allows($role, $capability), in_array($capability, $allowed, true), - "$role:$capability exhaustive"); - } - $actual = Access::forRole($role); - sort($actual); - sort($allowed); - expect($actual === $allowed, true, "$role exact capability list"); -} - -try { - Access::requireAllowed('viewer', 'ledger.post'); - throw new RuntimeException('Viewer was able to post'); -} catch (DomainException $e) { - expect($e->getMessage() === 'permission_denied', true, 'viewer write throws permission_denied'); -} -try { - Access::allows('owner', 'ledger.god_mode'); - throw new RuntimeException('Unknown capability allowed'); -} catch (DomainException $e) { - expect($e->getMessage() === 'unknown_financial_capability', true, 'unknown capabilities fail closed'); -} -expect(in_array('roles.manage', Access::forRole('owner'), true), true, 'owner grant capability'); -expect(in_array('roles.manage', Access::forRole('manager'), true), false, 'manager cannot promote'); -echo "SaaS financial capability matrix: $checks named allow/deny assertions passed\n"; diff --git a/tests/unit/saas-policy.php b/tests/unit/saas-policy.php deleted file mode 100644 index f676547..0000000 --- a/tests/unit/saas-policy.php +++ /dev/null @@ -1,232 +0,0 @@ -getMessage(), $error); - return; - } - throw new RuntimeException("$case: unexpected permission or input acceptance"); -} -function layer(string $scope, mixed $value): array { - return ['scope' => $scope, 'value' => $value]; -} - -$registry = new PolicyRegistry(); -$resolver = new PolicyResolver(); -$external = $registry->get('externalSharing.enabled'); -$enable = $registry->get('environments.enabled'); - -result('external default fail closed', $resolver->resolve($external, [])['effectiveValue'], false); -result('default is source', $resolver->resolve($external, [])['sourceScope'], 'default'); -$result = $resolver->resolve($external, [ - layer('instance', true), layer('environment', false), layer('workspace', true), -]); -result('child cannot bypass parent false', $result['effectiveValue'], false); -result('child denial is attributed', $result['blockedBy'], 'environment'); -result('denial still identifies the effective environment source', $result['sourceScope'], 'environment'); -result('effective bool denies all enable values', $result['allowedValues'], [false]); -result('UI is never authoritative for editability', $result['editableByCurrentActor'], false); - -$result = $resolver->resolve($external, [layer('instance', true), layer('environment', true)]); -result('explicit parent allows only allowed child', $result['effectiveValue'], true); -result('instance origin retained', $result['sourceScope'], 'instance'); -result('bool still can be disabled', $result['allowedValues'], [false, true]); - -$result = $resolver->resolve($external, [layer('environment', true)]); -result('missing instance opt-in stays denied', $result['effectiveValue'], false); -result('missing instance cannot be circumvented', $result['blockedBy'], 'default'); -result('ineffective override retains the registry source', $result['sourceScope'], 'default'); - -denied('instance-only policy rejects environment', fn() => $resolver->resolve($enable, [ - layer('instance', true), layer('environment', true), -]), 'unsupported_scope'); -denied('malformed flag rejected', fn() => $resolver->resolve($external, [ - layer('instance', 'false'), -]), 'invalid_policy_value'); -denied('duplicate instance rejected', fn() => $resolver->resolve($external, [ - layer('instance', true), layer('instance', false), -]), 'invalid_policy_order'); -denied('reverse order rejected', fn() => $resolver->resolve($external, [ - layer('workspace', false), layer('environment', true), -]), 'invalid_policy_order'); -denied('two environment contexts cannot be combined', fn() => $resolver->resolve($external, [ - layer('environment', true), layer('environment', false), -]), 'invalid_policy_order'); -denied('client may not invent policies', fn() => $registry->get('financial.allAdmin'), 'unknown_policy_key'); - -$ceiling = $registry->get('workspaces.maxCount'); -$result = $resolver->resolve($ceiling, [ - layer('instance', 8), layer('environment', 3), -]); -result('child ceiling tightens', $result['effectiveValue'], 3); -result('child ceiling source', $result['sourceScope'], 'environment'); -result('numeric max advertised', $result['maxAllowed'], 3); -$result = $resolver->resolve($ceiling, [ - layer('instance', 2), layer('environment', 10), -]); -result('child ceiling cannot widen', $result['effectiveValue'], 2); -result('parent ceiling blocks wider setting', $result['blockedBy'], 'instance'); -$result = $resolver->resolve($ceiling, [layer('instance', 0)]); -result('zero ceiling denies', $result['blockedBy'], 'instance'); -denied('negative quota rejected', fn() => $resolver->resolve($ceiling, [ - layer('instance', -1), -]), 'invalid_policy_value'); -denied('noninteger quota rejected', fn() => $resolver->resolve($ceiling, [ - layer('instance', 1.1), -]), 'invalid_policy_value'); -denied('unsafe JSON integer quota rejected', fn() => $resolver->resolve($ceiling, [ - layer('instance', 9007199254740992), -]), 'invalid_policy_value'); - -$set = new PolicyDefinition('regions.allowed', 'allowed_set', - ['instance', 'environment', 'workspace'], ['BR', 'PT', 'US'], true); -$result = $resolver->resolve($set, [ - layer('instance', ['BR', 'PT', 'US']), - layer('environment', ['BR', 'PT', 'XX']), - layer('workspace', ['PT', 'FR']), -]); -result('set only intersects', $result['effectiveValue'], ['PT']); -result('set narrowed at workspace', $result['sourceScope'], 'workspace'); -$result = $resolver->resolve($set, [ - layer('instance', ['BR', 'PT', 'US']), - layer('environment', ['BR', 'PT']), - layer('workspace', ['PT', 'BR']), -]); -result('equal intersection preserves ancestor order', $result['effectiveValue'], ['BR', 'PT']); -result('equal intersection retains the environment source', $result['sourceScope'], 'environment'); -$result = $resolver->resolve($set, [ - layer('instance', ['BR']), layer('environment', ['US']), -]); -result('empty intersection denies', $result['effectiveValue'], []); -result('empty set blocker', $result['blockedBy'], 'environment'); -result('empty intersection has the narrowing scope as source', $result['sourceScope'], 'environment'); -denied('set duplicate rejected', fn() => $resolver->resolve($set, [ - layer('instance', ['BR', 'BR']), -]), 'invalid_policy_value'); -denied('set rejects nested values', fn() => $resolver->resolve($set, [ - layer('instance', [['BR']]), -]), 'invalid_policy_value'); -denied('set rejects invalid scope', fn() => $resolver->resolve($set, [ - layer('instance', ['BR']), layer('user', ['BR']), -]), 'unsupported_scope'); - -denied('invalid scope definition', fn() => new PolicyDefinition('a.b', 'boolean', - ['environment', 'instance'], false, true), 'invalid_policy_scopes'); -denied('instance-only refuses child even if declared', fn() => $resolver->resolve( - new PolicyDefinition('modules.enabled', 'boolean', - ['instance', 'environment'], true, false), - [layer('instance', true), layer('environment', false)] -), 'policy_override_forbidden'); - -$formatPolicy = $registry->get('banking.allowedImportFormats'); -result('bank formats default preserves CSV and OFX', - $resolver->resolve($formatPolicy, [])['effectiveValue'], ['csv', 'ofx']); -result('bank format policy is not a personal access grant', - $formatPolicy->supports('user'), false); -denied('instance cannot invent a bank format outside its declared universe', - fn() => $formatPolicy->assertValue(['xml']), 'invalid_policy_value'); -denied('workspace cannot inject invalid bank format among accepted values', - fn() => $resolver->resolve($formatPolicy, [ - layer('instance', ['csv', 'ofx']), - layer('workspace', ['csv', 'xml']), - ]), 'invalid_policy_value'); -$result = $resolver->resolve($formatPolicy, [ - layer('instance', ['csv', 'ofx']), - layer('environment', ['ofx']), - layer('workspace', ['csv', 'ofx']), -]); -result('bank format intersection never widens environment', - $result['effectiveValue'], ['ofx']); -result('bank format intersection records narrowing source', - $result['sourceScope'], 'environment'); -$result = $resolver->resolve($formatPolicy, [ - layer('instance', ['ofx']), layer('environment', ['csv']), -]); -result('bank formats deny all on empty ancestor intersection', - $result['effectiveValue'], []); -denied('bank format typo is not an automatically enabled format', - fn() => $formatPolicy->assertValue(['csv', ['ofx']]), 'invalid_policy_value'); - -$reports = $registry->get('modules.reports.enabled'); -result('report module remains enabled by default for existing ledgers', - $resolver->resolve($reports, [])['effectiveValue'], true); -result('report module policy cannot be set at user scope', - $reports->supports('user'), false); -$result = $resolver->resolve($reports, [ - layer('instance', true), layer('environment', false), layer('workspace', true), -]); -result('workspace cannot re-enable report module blocked by environment', - $result['effectiveValue'], false); -result('report module denial identifies its environment blocker', - $result['blockedBy'], 'environment'); -denied('report module requires a boolean value', - fn() => $reports->assertValue('true'), 'invalid_policy_value'); - -$nfseDrafts = $registry->get('regional.nfseDrafts.enabled'); -result('optional fiscal draft integration preserves installed compatibility by default', - $resolver->resolve($nfseDrafts, [])['effectiveValue'], true); -result('fiscal draft policy cannot grant access at user scope', - $nfseDrafts->supports('user'), false); -$result = $resolver->resolve($nfseDrafts, [ - layer('instance', true), layer('environment', false), layer('workspace', true), -]); -result('workspace cannot bypass environment fiscal draft restriction', - $result['effectiveValue'], false); -result('fiscal draft policy identifies effective environment denial', - $result['blockedBy'], 'environment'); -denied('fiscal draft policy rejects a string flag', - fn() => $nfseDrafts->assertValue('false'), 'invalid_policy_value'); - -$dashboard = $registry->get('dashboard.kpis.enabled'); -result('dashboard policy supports self-user scope', - $dashboard->supports('user'), true); -result('dashboard default presents indicators', - $resolver->resolve($dashboard, [])['effectiveValue'], true); -$result = $resolver->resolve($dashboard, [ - layer('instance', true), layer('environment', true), - layer('workspace', true), layer('user', false), -]); -result('user may hide dashboard cards', $result['effectiveValue'], false); -result('user controls own dashboard source', $result['sourceScope'], 'user'); -$result = $resolver->resolve($dashboard, [ - layer('instance', true), layer('environment', true), - layer('workspace', false), layer('user', true), -]); -result('user cannot bypass workspace hide', $result['effectiveValue'], false); -result('workspace ancestor is the blocking source', $result['blockedBy'], 'workspace'); -result('ineffective user override retains the workspace source', $result['sourceScope'], 'workspace'); -denied('user scope cannot change external sharing policy', - fn() => $resolver->resolve($external, [ - layer('instance', true), layer('user', true), - ]), 'unsupported_scope'); -denied('user scope cannot change company count', - fn() => $resolver->resolve($ceiling, [ - layer('instance', 2), layer('user', 99), - ]), 'unsupported_scope'); - -echo "SaaS policy resolver: $checks named restrictive positive and negative assertions passed\n"; From 7a2a7a56ddeabceb3257fad3fc3eb1688b1b2651 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:16:26 +0000 Subject: [PATCH 5/7] test: mirror production class paths in the unit suite Refs #70 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- AGENTS.md | 1 + composer.json | 2 +- docs/FUNCTIONAL-COVERAGE.md | 2 +- docs/TESTING.md | 8 +++- phpunit.xml | 2 +- .../Banking}/OfxStatementParserTest.php | 2 +- .../Domain/Currency}/ExactConversionTest.php | 2 +- .../Unit/Domain/Currency}/RateQuoteTest.php | 2 +- .../Saas}/FinancialCapabilitiesTest.php | 2 +- .../Unit/Domain/Saas/PolicyDefinitionTest.php | 40 +++++++++++++++++++ .../Unit/Domain/Saas/PolicyRegistryTest.php | 39 ++++++++++++++++++ .../Unit/Domain/Saas}/PolicyResolverTest.php | 39 ++---------------- .../Unit/PublicAPI}/ModuleDescriptorTest.php | 2 +- 13 files changed, 98 insertions(+), 45 deletions(-) rename tests/{unit => php/Unit/Domain/Banking}/OfxStatementParserTest.php (98%) rename tests/{unit => php/Unit/Domain/Currency}/ExactConversionTest.php (98%) rename tests/{unit => php/Unit/Domain/Currency}/RateQuoteTest.php (97%) rename tests/{unit => php/Unit/Domain/Saas}/FinancialCapabilitiesTest.php (99%) create mode 100644 tests/php/Unit/Domain/Saas/PolicyDefinitionTest.php create mode 100644 tests/php/Unit/Domain/Saas/PolicyRegistryTest.php rename tests/{unit => php/Unit/Domain/Saas}/PolicyResolverTest.php (87%) rename tests/{unit => php/Unit/PublicAPI}/ModuleDescriptorTest.php (98%) diff --git a/AGENTS.md b/AGENTS.md index 786abca..3b06ab5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,5 +12,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later - Use \`OCP\DB\QueryBuilder\` for DB changes. Test SQLite, MariaDB and PostgreSQL; maintain immutable migrations. - No secrets in source, logs, screenshots, issues or PR descriptions. Remote banking, NFS-e, AI, payments and signatures are optional modules with explicit authorization. - Build and validate PHP and Vue separately. Never commit generated `js/` or `css/`; build assets for development, browser CI and the App Store archive. Keep OpenAPI versioned. A route or a green CI that skipped tests is not proof of financial correctness. +- PHP unit tests use PHPUnit and mirror existing production classes: `lib/Domain/Currency/ExactConversion.php` maps to `tests/php/Unit/Domain/Currency/ExactConversionTest.php` and the matching namespace. Keep one test class per existing source class, do not invent generic or unmatched unit test classes, and place tests requiring an installed Nextcloud or database in the integration suite. Run `composer test:unit` (or filter by class/method during development). - PRs: incremental signed commits with DCO, no automatic squash; follow LibreCode repository governance. - Issue and epic creation requires exact human approval after drafting and review. Do not publish private commercial context. diff --git a/composer.json b/composer.json index fce8fb3..b0f0654 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ }, "autoload-dev": { "psr-4": { - "OCA\\LibreFinance\\Tests\\Unit\\": "tests/unit/" + "OCA\\LibreFinance\\Tests\\Unit\\": "tests/php/Unit/" } }, "scripts": { diff --git a/docs/FUNCTIONAL-COVERAGE.md b/docs/FUNCTIONAL-COVERAGE.md index 39f142a..e228938 100644 --- a/docs/FUNCTIONAL-COVERAGE.md +++ b/docs/FUNCTIONAL-COVERAGE.md @@ -33,7 +33,7 @@ production accounting, fiscal or regulatory operation by this matrix. | Native navigation, localization, dashboard, search and activity | Partial | Core #67 | [navigation](../tests/frontend/navigation.test.mjs), [UX](../tests/e2e/ux-refactor.spec.mjs), [search](../tests/integration/agenda-search-sort.php), [activity](../tests/integration/activity-feed.php) | Portuguese-first UI; translate source strings, switch locale and keyboard/mobile navigation without changing stored values. | | Commercial invoices, generic tax rules and allocations | Partial | Core #46 | [invoicing](../tests/integration/domains/invoicing.php), [payments](../tests/integration/domains/payments.php) | Add quotes/orders, recurring invoices, credit notes and historical invoice-obligation reconciliation; test issue, partial allocation, reversal and duplicate rejection. Commercial issue is not fiscal authorization. | | Payables, receivables and manual settlement | Partial | Core #46 | [obligations](../tests/integration/domains/obligations.php), [payments](../tests/integration/domains/payments.php), [payment methods](../tests/integration/payment-methods.php) | Complete recurring commitments, approval, payment lifecycle and historical links. Verify linked invoices cannot be settled by a duplicate route. | -| Bank accounts, CSV/OFX statement evidence and reconciliation | Partial | Core #47 | [bank identity](../tests/integration/bank-identity.php), [banking](../tests/integration/domains/banking.php), [OFX parser](../tests/unit/OfxStatementParserTest.php), [formats policy](../tests/e2e/saas-bank-import-formats.spec.mjs) | Add assisted matching, full transfer/card flows and formats beyond CSV/OFX. Imported statements stay pending until an authorized reconciliation; replay cannot create duplicates. | +| Bank accounts, CSV/OFX statement evidence and reconciliation | Partial | Core #47 | [bank identity](../tests/integration/bank-identity.php), [banking](../tests/integration/domains/banking.php), [OFX parser](../tests/php/Unit/Domain/Banking/OfxStatementParserTest.php), [formats policy](../tests/e2e/saas-bank-import-formats.spec.mjs) | Add assisted matching, full transfer/card flows and formats beyond CSV/OFX. Imported statements stay pending until an authorized reconciliation; replay cannot create duplicates. | | Bank balance comparison | Partial | Core #47 / #66 | [import](../tests/integration/domains/import.php), [banking](../tests/integration/domains/banking.php) | Source balance snapshots are diagnostic, not postings or certified reconciliation. Compare opening/closing balances and unmatched entries at a common cutoff. | | Realized cash flow, trial balance, simple result, saved reports | Partial | Core #48 | [cash flow](../tests/integration/domains/reports-cash-flow.php), [saved reports](../tests/integration/domains/reports-saved.php) | Formal statements, projected cash flow, complete reporting dimensions and approved immutable snapshots. Compare totals with independently computed journal balances. | | Funding and budget availability | Planned | Core #48 / #74 | No supported budget availability workflow asserted | Given an approved budget and simultaneous requests, verify available balance, scope, exact arithmetic and no overspend. | diff --git a/docs/TESTING.md b/docs/TESTING.md index 83f9c52..2780715 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -32,10 +32,16 @@ automática de requisições financeiras. ## Testes unitários PHP Na raiz do repositório, execute `composer install` e `composer test:unit`. -A configuração `phpunit.xml` descobre as classes em `tests/unit/`, sem +A configuração `phpunit.xml` descobre as classes em `tests/php/Unit/`, sem instalar o Nextcloud. O workflow `php-unit.yml` executa essa suíte na matriz de versões PHP suportadas pelo aplicativo. +Os testes unitários espelham o caminho e o namespace de uma classe existente +em `lib/`. Por exemplo, `lib/Domain/Currency/ExactConversion.php` corresponde +a `tests/php/Unit/Domain/Currency/ExactConversionTest.php`, no namespace +`OCA\\LibreFinance\\Tests\\Unit\\Domain\\Currency`. Não crie classes de teste +genéricas ou sem uma classe de produção correspondente. + ## API: PHPUnit/integração e Behat por shards O laboratório executa suites nativas PHP HTTP separadas por regras e diff --git a/phpunit.xml b/phpunit.xml index 3d45d07..78a9e84 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later failOnAllIssues="true"> - tests/unit + tests/php/Unit diff --git a/tests/unit/OfxStatementParserTest.php b/tests/php/Unit/Domain/Banking/OfxStatementParserTest.php similarity index 98% rename from tests/unit/OfxStatementParserTest.php rename to tests/php/Unit/Domain/Banking/OfxStatementParserTest.php index 8211768..91c6222 100644 --- a/tests/unit/OfxStatementParserTest.php +++ b/tests/php/Unit/Domain/Banking/OfxStatementParserTest.php @@ -5,7 +5,7 @@ */ declare(strict_types=1); -namespace OCA\LibreFinance\Tests\Unit; +namespace OCA\LibreFinance\Tests\Unit\Domain\Banking; use DomainException; use OCA\LibreFinance\Domain\Banking\OfxStatementParser; diff --git a/tests/unit/ExactConversionTest.php b/tests/php/Unit/Domain/Currency/ExactConversionTest.php similarity index 98% rename from tests/unit/ExactConversionTest.php rename to tests/php/Unit/Domain/Currency/ExactConversionTest.php index e296626..053b2de 100644 --- a/tests/unit/ExactConversionTest.php +++ b/tests/php/Unit/Domain/Currency/ExactConversionTest.php @@ -7,7 +7,7 @@ declare(strict_types=1); -namespace OCA\LibreFinance\Tests\Unit; +namespace OCA\LibreFinance\Tests\Unit\Domain\Currency; use DomainException; use OCA\LibreFinance\Domain\Currency\ExactConversion; diff --git a/tests/unit/RateQuoteTest.php b/tests/php/Unit/Domain/Currency/RateQuoteTest.php similarity index 97% rename from tests/unit/RateQuoteTest.php rename to tests/php/Unit/Domain/Currency/RateQuoteTest.php index 6c38e9c..a3e9739 100644 --- a/tests/unit/RateQuoteTest.php +++ b/tests/php/Unit/Domain/Currency/RateQuoteTest.php @@ -5,7 +5,7 @@ */ declare(strict_types=1); -namespace OCA\LibreFinance\Tests\Unit; +namespace OCA\LibreFinance\Tests\Unit\Domain\Currency; use DomainException; use OCA\LibreFinance\Domain\Currency\RateQuote; diff --git a/tests/unit/FinancialCapabilitiesTest.php b/tests/php/Unit/Domain/Saas/FinancialCapabilitiesTest.php similarity index 99% rename from tests/unit/FinancialCapabilitiesTest.php rename to tests/php/Unit/Domain/Saas/FinancialCapabilitiesTest.php index e5fb251..3229785 100644 --- a/tests/unit/FinancialCapabilitiesTest.php +++ b/tests/php/Unit/Domain/Saas/FinancialCapabilitiesTest.php @@ -5,7 +5,7 @@ */ declare(strict_types=1); -namespace OCA\LibreFinance\Tests\Unit; +namespace OCA\LibreFinance\Tests\Unit\Domain\Saas; use DomainException; use OCA\LibreFinance\Domain\Saas\FinancialCapabilities as Access; diff --git a/tests/php/Unit/Domain/Saas/PolicyDefinitionTest.php b/tests/php/Unit/Domain/Saas/PolicyDefinitionTest.php new file mode 100644 index 0000000..43a3144 --- /dev/null +++ b/tests/php/Unit/Domain/Saas/PolicyDefinitionTest.php @@ -0,0 +1,40 @@ +expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Ainvalid_policy_scopes\z/'); + new PolicyDefinition('a.b', 'boolean', ['environment', 'instance'], false, true); + } + + public static function invalidPolicyValues(): array { + return [ + 'unknown bank format' => ['banking.allowedImportFormats', ['xml']], + 'nested bank format' => ['banking.allowedImportFormats', ['csv', ['ofx']]], + 'report string flag' => ['modules.reports.enabled', 'true'], + 'fiscal draft string flag' => ['regional.nfseDrafts.enabled', 'false'], + ]; + } + + #[DataProvider('invalidPolicyValues')] + public function testRejectsInvalidPolicyValues(string $key, mixed $value): void { + $policy = (new PolicyRegistry())->get($key); + + $this->expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Ainvalid_policy_value\z/'); + $policy->assertValue($value); + } +} diff --git a/tests/php/Unit/Domain/Saas/PolicyRegistryTest.php b/tests/php/Unit/Domain/Saas/PolicyRegistryTest.php new file mode 100644 index 0000000..5c81a6a --- /dev/null +++ b/tests/php/Unit/Domain/Saas/PolicyRegistryTest.php @@ -0,0 +1,39 @@ +expectException(DomainException::class); + $this->expectExceptionMessageMatches('/\Aunknown_policy_key\z/'); + $registry->get('financial.allAdmin'); + } + + public static function registeredUserScopes(): array { + return [ + 'bank format' => ['banking.allowedImportFormats', false], + 'reports' => ['modules.reports.enabled', false], + 'fiscal drafts' => ['regional.nfseDrafts.enabled', false], + 'dashboard' => ['dashboard.kpis.enabled', true], + ]; + } + + #[DataProvider('registeredUserScopes')] + public function testRegisteredPolicyUserScope(string $key, bool $expected): void { + $policy = (new PolicyRegistry())->get($key); + + self::assertSame($expected, $policy->supports('user')); + } +} diff --git a/tests/unit/PolicyResolverTest.php b/tests/php/Unit/Domain/Saas/PolicyResolverTest.php similarity index 87% rename from tests/unit/PolicyResolverTest.php rename to tests/php/Unit/Domain/Saas/PolicyResolverTest.php index 43ff8c1..92cee01 100644 --- a/tests/unit/PolicyResolverTest.php +++ b/tests/php/Unit/Domain/Saas/PolicyResolverTest.php @@ -5,7 +5,7 @@ */ declare(strict_types=1); -namespace OCA\LibreFinance\Tests\Unit; +namespace OCA\LibreFinance\Tests\Unit\Domain\Saas; use DomainException; use OCA\LibreFinance\Domain\Saas\PolicyDefinition; @@ -130,12 +130,6 @@ public function testEmptyIntersectionDenies(): void { self::assertSame('environment', $result['sourceScope']); } - public function testInvalidScopeDefinition(): void { - $this->expectException(DomainException::class); - $this->expectExceptionMessageMatches('/\Ainvalid_policy_scopes\z/'); - new PolicyDefinition('a.b', 'boolean', ['environment', 'instance'], false, true); - } - public function testInstanceOnlyPolicyRejectsChildEvenIfDeclared(): void { $policy = new PolicyDefinition('modules.enabled', 'boolean', ['instance', 'environment'], true, false); @@ -147,17 +141,10 @@ public function testInstanceOnlyPolicyRejectsChildEvenIfDeclared(): void { ]); } - public function testRegistryRejectsUnknownKey(): void { - $this->expectException(DomainException::class); - $this->expectExceptionMessageMatches('/\Aunknown_policy_key\z/'); - $this->registry->get('financial.allAdmin'); - } - - public function testBankFormatDefaultsDoNotGrantPersonalAccess(): void { + public function testBankFormatDefaultsPreserveCsvAndOfx(): void { $policy = $this->registry->get('banking.allowedImportFormats'); self::assertSame(['csv', 'ofx'], $this->resolver->resolve($policy, [])['effectiveValue']); - self::assertFalse($policy->supports('user')); } public function testBankFormatIntersectionCannotWidenEnvironment(): void { @@ -190,7 +177,6 @@ public static function optionalModulePolicies(): array { public function testModuleDefaultsAndEnvironmentRestrictions(string $key): void { $policy = $this->registry->get($key); self::assertTrue($this->resolver->resolve($policy, [])['effectiveValue']); - self::assertFalse($policy->supports('user')); $result = $this->resolver->resolve($policy, [ self::layer('instance', true), self::layer('environment', false), self::layer('workspace', true), @@ -199,10 +185,9 @@ public function testModuleDefaultsAndEnvironmentRestrictions(string $key): void self::assertSame('environment', $result['blockedBy']); } - public function testDashboardDefaultAndUserScope(): void { + public function testDashboardEnabledByDefault(): void { $policy = $this->registry->get('dashboard.kpis.enabled'); - self::assertTrue($policy->supports('user')); self::assertTrue($this->resolver->resolve($policy, [])['effectiveValue']); } @@ -290,22 +275,4 @@ public function testRejectsInvalidRegionLayers(array $layers, string $error): vo $this->expectExceptionMessageMatches('/\A' . preg_quote($error, '/') . '\z/'); $this->resolver->resolve($policy, $layers); } - - public static function invalidPolicyValues(): array { - return [ - 'unknown bank format' => ['banking.allowedImportFormats', ['xml']], - 'nested bank format' => ['banking.allowedImportFormats', ['csv', ['ofx']]], - 'report string flag' => ['modules.reports.enabled', 'true'], - 'fiscal draft string flag' => ['regional.nfseDrafts.enabled', 'false'], - ]; - } - - #[DataProvider('invalidPolicyValues')] - public function testRejectsInvalidPolicyValues(string $key, mixed $value): void { - $policy = $this->registry->get($key); - - $this->expectException(DomainException::class); - $this->expectExceptionMessageMatches('/\Ainvalid_policy_value\z/'); - $policy->assertValue($value); - } } diff --git a/tests/unit/ModuleDescriptorTest.php b/tests/php/Unit/PublicAPI/ModuleDescriptorTest.php similarity index 98% rename from tests/unit/ModuleDescriptorTest.php rename to tests/php/Unit/PublicAPI/ModuleDescriptorTest.php index 677defe..365aeb7 100644 --- a/tests/unit/ModuleDescriptorTest.php +++ b/tests/php/Unit/PublicAPI/ModuleDescriptorTest.php @@ -5,7 +5,7 @@ */ declare(strict_types=1); -namespace OCA\LibreFinance\Tests\Unit; +namespace OCA\LibreFinance\Tests\Unit\PublicAPI; use InvalidArgumentException; use OCA\LibreFinance\PublicAPI\ModuleDescriptor; From fd482ce1b9251411ac3454d871e86e46f087caa6 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:25:41 +0000 Subject: [PATCH 6/7] build: isolate PHPUnit dependencies with composer-bin-plugin Refs #70 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- composer.json | 15 +- composer.lock | 1748 +-------------------- docs/TESTING.md | 3 + vendor-bin/phpunit/composer.json | 12 + vendor-bin/phpunit/composer.json.license | 2 + vendor-bin/phpunit/composer.lock | 1764 ++++++++++++++++++++++ vendor-bin/phpunit/composer.lock.license | 2 + 7 files changed, 1827 insertions(+), 1719 deletions(-) create mode 100644 vendor-bin/phpunit/composer.json create mode 100644 vendor-bin/phpunit/composer.json.license create mode 100644 vendor-bin/phpunit/composer.lock create mode 100644 vendor-bin/phpunit/composer.lock.license diff --git a/composer.json b/composer.json index b0f0654..291e3cd 100644 --- a/composer.json +++ b/composer.json @@ -7,13 +7,16 @@ "php": "^8.3" }, "require-dev": { - "phpunit/phpunit": "^12.5" + "bamarni/composer-bin-plugin": "^1.8" }, "config": { "platform": { "php": "8.3.0" }, - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "bamarni/composer-bin-plugin": true + } }, "autoload": { "psr-4": { @@ -27,8 +30,14 @@ }, "scripts": { "lint": "find appinfo lib -type f -name '*.php' -print0 | xargs -0 -n 1 php -l", - "test:unit": "phpunit --configuration phpunit.xml --testsuite unit --no-coverage", + "test:unit": "vendor/bin/phpunit --configuration phpunit.xml --testsuite unit --no-coverage", "openapi": "@php tests/openapi/generate.php", "openapi:check": "@php tests/openapi/generate.php --check" + }, + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + } } } diff --git a/composer.lock b/composer.lock index 03bff57..0f248f1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,1750 +4,66 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "da7768ea98319aac476ff7962ee5ae67", + "content-hash": "d284aeda312366824489c985889ff671", "packages": [], "packages-dev": [ { - "name": "myclabs/deep-copy", - "version": "1.14.0", + "name": "bamarni/composer-bin-plugin", + "version": "1.9.1", "source": { "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae" + "url": "https://github.com/bamarni/composer-bin-plugin.git", + "reference": "641d0663f5ac270b1aeec4337b7856f76204df47" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", - "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "url": "https://api.github.com/repos/bamarni/composer-bin-plugin/zipball/641d0663f5ac270b1aeec4337b7856f76204df47", + "reference": "641d0663f5ac270b1aeec4337b7856f76204df47", "shasum": "" }, "require": { - "php": "^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3 <3.2.2" + "composer-plugin-api": "^2.0", + "php": "^7.2.5 || ^8.0" }, "require-dev": { - "doctrine/collections": "^1.6.8", - "doctrine/common": "^2.13.3 || ^3.2.2", - "phpspec/prophecy": "^1.10", - "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" - }, - "type": "library", - "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.14.0" - }, - "funding": [ - { - "url": "https://github.com/mnapoli", - "type": "github" - } - ], - "time": "2026-08-11T10:17:44+00:00", - "published-time": "2026-08-11T10:29:20+00:00" - }, - { - "name": "nikic/php-parser", - "version": "v5.9.0", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/9e33da9553fe7786f0962b35f4e4ecf01be89def", - "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def", - "shasum": "" - }, - "require": { + "composer/composer": "^2.2.26", "ext-json": "*", - "ext-tokenizer": "*", - "php": ">=7.4" - }, - "require-dev": { - "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^9.0" + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8 || ^2.0", + "phpstan/phpstan-phpunit": "^1.1 || ^2.0", + "phpunit/phpunit": "^8.5 || ^9.6 || ^10.0", + "symfony/console": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", + "symfony/finder": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", + "symfony/process": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0" }, - "bin": [ - "bin/php-parse" - ], - "type": "library", + "type": "composer-plugin", "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } + "class": "Bamarni\\Composer\\Bin\\BamarniBinPlugin" }, "autoload": { "psr-4": { - "PhpParser\\": "lib/PhpParser" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "support": { - "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.9.0" - }, - "time": "2026-09-13T18:51:52+00:00", - "published-time": "2026-09-13T18:53:16+00:00" - }, - { - "name": "phar-io/manifest", - "version": "2.0.4", - "source": { - "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "54750ef60c58e43759730615a392c31c80e23176" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", - "reference": "54750ef60c58e43759730615a392c31c80e23176", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "support": { - "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.4" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2024-03-03T12:33:53+00:00", - "published-time": "2024-03-03T12:39:44+00:00" - }, - { - "name": "phar-io/version", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Library for handling version information and constraints", - "support": { - "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.2.1" - }, - "time": "2022-02-21T01:04:05+00:00", - "published-time": "2022-02-21T01:04:30+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "12.5.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7440368d94738d54f2c1de24dbd3871793bbb0dd", - "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-xmlwriter": "*", - "nikic/php-parser": "^5.9.0", - "php": ">=8.3", - "phpunit/php-text-template": "^5.0.1", - "sebastian/complexity": "^5.0", - "sebastian/environment": "^8.1.2", - "sebastian/lines-of-code": "^4.0.1", - "sebastian/version": "^6.0", - "theseer/tokenizer": "^2.0.1" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.37" - }, - "suggest": { - "ext-pcov": "PHP extension that provides line coverage", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "12.5.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.8" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", - "type": "tidelift" - } - ], - "time": "2026-10-03T14:03:50+00:00", - "published-time": "2026-10-03T14:04:33+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "6.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a248d1640ab059b075f53a2ef0f9856e864e06b5", - "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.33" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", - "type": "tidelift" - } - ], - "time": "2026-08-25T14:40:53+00:00", - "published-time": "2026-08-25T14:41:57+00:00" - }, - { - "name": "phpunit/php-invoker", - "version": "6.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", - "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "ext-pcntl": "*", - "phpunit/phpunit": "^12.0" - }, - "suggest": { - "ext-pcntl": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Invoke callables with a timeout", - "homepage": "https://github.com/sebastianbergmann/php-invoker/", - "keywords": [ - "process" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2025-02-07T04:58:58+00:00", - "published-time": "2025-02-07T04:59:09+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "5.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/babab73b7ef9fae406f2eb3ee11323a61caa63d5", - "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.37" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/php-text-template", - "type": "tidelift" - } - ], - "time": "2026-10-03T04:51:29+00:00", - "published-time": "2026-10-03T04:54:39+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "8.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", - "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "8.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "security": "https://github.com/sebastianbergmann/php-timer/security/policy", - "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2025-02-07T04:59:38+00:00", - "published-time": "2025-02-07T04:59:52+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "12.5.45", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "ca97be2931de6a0adf824da12889cbf935a016e9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ca97be2931de6a0adf824da12889cbf935a016e9", - "reference": "ca97be2931de6a0adf824da12889cbf935a016e9", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-filter": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.14.0", - "phar-io/manifest": "^2.0.4", - "phar-io/version": "^3.2.1", - "php": ">=8.3", - "phpunit/php-code-coverage": "^12.5.8", - "phpunit/php-file-iterator": "^6.0.2", - "phpunit/php-invoker": "^6.0.0", - "phpunit/php-text-template": "^5.0.1", - "phpunit/php-timer": "^8.0.0", - "sebastian/cli-parser": "^4.2.1", - "sebastian/comparator": "^7.1.8", - "sebastian/diff": "^7.0.1", - "sebastian/environment": "^8.1.2", - "sebastian/exporter": "^7.0.3", - "sebastian/global-state": "^8.0.3", - "sebastian/object-enumerator": "^7.0.0", - "sebastian/recursion-context": "^7.0.1", - "sebastian/type": "^6.0.4", - "sebastian/version": "^6.0.2", - "staabm/side-effects-detector": "^1.0.5" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "12.5-dev" + "Bamarni\\Composer\\Bin\\": "src" } }, - "autoload": { - "files": [ - "src/Framework/Assert/Functions.php" - ], - "classmap": [ - "src/" - ] - }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "MIT" ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", + "description": "No conflicts for your bin dependencies", "keywords": [ - "phpunit", - "testing", - "xunit" + "composer", + "conflict", + "dependency", + "executable", + "isolation", + "tool" ], "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.45" - }, - "funding": [ - { - "url": "https://phpunit.de/sponsoring.html", - "type": "other" - } - ], - "time": "2026-11-19T12:16:09+00:00", - "published-time": "2026-11-19T12:17:59+00:00" - }, - { - "name": "sebastian/cli-parser", - "version": "4.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", - "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", - "shasum": "" - }, - "require": { - "php": ">=8.3" + "issues": "https://github.com/bamarni/composer-bin-plugin/issues", + "source": "https://github.com/bamarni/composer-bin-plugin/tree/1.9.1" }, - "require-dev": { - "phpunit/phpunit": "^12.5.25" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for parsing CLI options", - "homepage": "https://github.com/sebastianbergmann/cli-parser", - "support": { - "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", - "type": "tidelift" - } - ], - "time": "2026-05-17T05:29:34+00:00", - "published-time": "2026-05-17T05:30:34+00:00" - }, - { - "name": "sebastian/comparator", - "version": "7.1.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "7c65c1e79836812819705b473a90c12399542485" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7c65c1e79836812819705b473a90c12399542485", - "reference": "7c65c1e79836812819705b473a90c12399542485", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-mbstring": "*", - "php": ">=8.3", - "sebastian/diff": "^7.0", - "sebastian/exporter": "^7.0.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.25" - }, - "suggest": { - "ext-bcmath": "For comparing BcMath\\Number objects" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/comparator/issues", - "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.8" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", - "type": "tidelift" - } - ], - "time": "2026-05-21T04:45:25+00:00", - "published-time": "2026-05-21T04:45:36+00:00" - }, - { - "name": "sebastian/complexity", - "version": "5.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", - "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^5.0", - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for calculating the complexity of PHP code units", - "homepage": "https://github.com/sebastianbergmann/complexity", - "support": { - "issues": "https://github.com/sebastianbergmann/complexity/issues", - "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2025-02-07T04:55:25+00:00", - "published-time": "2025-02-07T04:55:36+00:00" - }, - { - "name": "sebastian/diff", - "version": "7.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", - "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.33", - "symfony/process": "^7.4.17" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/7.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/diff", - "type": "tidelift" - } - ], - "time": "2026-08-25T15:35:54+00:00", - "published-time": "2026-08-25T15:37:16+00:00" - }, - { - "name": "sebastian/environment", - "version": "8.1.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9d32c685773823b1983e256ae4ecd48a10d6e439", - "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.26" - }, - "suggest": { - "ext-posix": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "8.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "https://github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/8.1.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", - "type": "tidelift" - } - ], - "time": "2026-05-25T13:40:20+00:00", - "published-time": "2026-05-25T13:40:39+00:00" - }, - { - "name": "sebastian/exporter", - "version": "7.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", - "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", - "shasum": "" - }, - "require": { - "ext-mbstring": "*", - "php": ">=8.3", - "sebastian/recursion-context": "^7.0.1" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.25" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "https://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", - "type": "tidelift" - } - ], - "time": "2026-05-20T04:37:17+00:00", - "published-time": "2026-05-20T04:37:31+00:00" - }, - { - "name": "sebastian/global-state", - "version": "8.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b164d3274d6537ab462591c5755f76a8f5b1aae9", - "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9", - "shasum": "" - }, - "require": { - "php": ">=8.3", - "sebastian/object-reflector": "^5.0", - "sebastian/recursion-context": "^7.0.1" - }, - "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^12.5.28" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "8.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "https://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", - "type": "tidelift" - } - ], - "time": "2026-06-01T15:10:33+00:00", - "published-time": "2026-06-01T15:20:45+00:00" - }, - { - "name": "sebastian/lines-of-code", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d543b8ef219dcd8da262cbb958639a96bedba10e", - "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^5.7.0", - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.25" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", - "support": { - "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/lines-of-code", - "type": "tidelift" - } - ], - "time": "2026-05-19T16:22:07+00:00", - "published-time": "2026-05-19T16:22:47+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "7.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", - "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", - "shasum": "" - }, - "require": { - "php": ">=8.3", - "sebastian/object-reflector": "^5.0", - "sebastian/recursion-context": "^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^12.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "support": { - "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2025-02-07T04:57:48+00:00", - "published-time": "2025-02-07T04:58:08+00:00" - }, - { - "name": "sebastian/object-reflector", - "version": "5.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "4bfa827c969c98be1e527abd576533293c634f6a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", - "reference": "4bfa827c969c98be1e527abd576533293c634f6a", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "support": { - "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2025-02-07T04:58:17+00:00", - "published-time": "2025-02-07T04:58:28+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "7.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", - "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "https://github.com/sebastianbergmann/recursion-context", - "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", - "type": "tidelift" - } - ], - "time": "2025-08-13T04:44:59+00:00", - "published-time": "2025-08-13T04:45:10+00:00" - }, - { - "name": "sebastian/type", - "version": "6.0.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "82ff822c2edc46724be9f7411d3163021f602773" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/82ff822c2edc46724be9f7411d3163021f602773", - "reference": "82ff822c2edc46724be9f7411d3163021f602773", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "require-dev": { - "phpunit/phpunit": "^12.5.25" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", - "support": { - "issues": "https://github.com/sebastianbergmann/type/issues", - "security": "https://github.com/sebastianbergmann/type/security/policy", - "source": "https://github.com/sebastianbergmann/type/tree/6.0.4" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/type", - "type": "tidelift" - } - ], - "time": "2026-05-20T06:45:45+00:00", - "published-time": "2026-05-20T06:50:13+00:00" - }, - { - "name": "sebastian/version", - "version": "6.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/a8b6643a19ba6c8125a473623e45fb8cbb0e4159", - "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159", - "shasum": "" - }, - "require": { - "php": ">=8.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/6.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/sebastian/version", - "type": "tidelift" - } - ], - "time": "2026-11-09T06:30:55+00:00", - "published-time": "2026-11-09T06:31:20+00:00" - }, - { - "name": "staabm/side-effects-detector", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/staabm/side-effects-detector.git", - "reference": "d8334211a140ce329c13726d4a715adbddd0a163" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", - "reference": "d8334211a140ce329c13726d4a715adbddd0a163", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": "^7.4 || ^8.0" - }, - "require-dev": { - "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan": "^1.12.6", - "phpunit/phpunit": "^9.6.21", - "symfony/var-dumper": "^5.4.43", - "tomasvotruba/type-coverage": "1.0.0", - "tomasvotruba/unused-public": "1.0.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "lib/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A static analysis tool to detect side effects in PHP code", - "keywords": [ - "static analysis" - ], - "support": { - "issues": "https://github.com/staabm/side-effects-detector/issues", - "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" - }, - "funding": [ - { - "url": "https://github.com/staabm", - "type": "github" - } - ], - "time": "2024-10-20T05:08:20+00:00", - "published-time": "2024-10-20T05:09:39+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", - "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^8.1" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "support": { - "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/2.0.1" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2025-12-08T11:19:18+00:00", - "published-time": "2025-12-08T11:19:39+00:00" + "time": "2026-02-04T10:18:12+00:00", + "published-time": "2026-02-04T10:45:35+00:00" } ], "aliases": [], diff --git a/docs/TESTING.md b/docs/TESTING.md index 2780715..32eb1cc 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -32,6 +32,9 @@ automática de requisições financeiras. ## Testes unitários PHP Na raiz do repositório, execute `composer install` e `composer test:unit`. +O plugin `bamarni/composer-bin-plugin` instala as dependências de teste +isoladamente em `vendor-bin/phpunit/`, com seu próprio `composer.lock` +e sem misturá-las às dependências de produção. A configuração `phpunit.xml` descobre as classes em `tests/php/Unit/`, sem instalar o Nextcloud. O workflow `php-unit.yml` executa essa suíte na matriz de versões PHP suportadas pelo aplicativo. diff --git a/vendor-bin/phpunit/composer.json b/vendor-bin/phpunit/composer.json new file mode 100644 index 0000000..10996e0 --- /dev/null +++ b/vendor-bin/phpunit/composer.json @@ -0,0 +1,12 @@ +{ + "license": "AGPL-3.0-or-later", + "require-dev": { + "phpunit/phpunit": "^12.5" + }, + "config": { + "platform": { + "php": "8.3.0" + }, + "sort-packages": true + } +} diff --git a/vendor-bin/phpunit/composer.json.license b/vendor-bin/phpunit/composer.json.license new file mode 100644 index 0000000..f8b5362 --- /dev/null +++ b/vendor-bin/phpunit/composer.json.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/vendor-bin/phpunit/composer.lock b/vendor-bin/phpunit/composer.lock new file mode 100644 index 0000000..a55c851 --- /dev/null +++ b/vendor-bin/phpunit/composer.lock @@ -0,0 +1,1764 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "23afcb9abad37bbe66fe547b985e00aa", + "packages": [], + "packages-dev": [ + { + "name": "myclabs/deep-copy", + "version": "1.14.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.14.0" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + } + ], + "time": "2026-08-11T10:17:44+00:00", + "published-time": "2026-08-11T10:29:20+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.9.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/9e33da9553fe7786f0962b35f4e4ecf01be89def", + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.9.0" + }, + "time": "2026-09-13T18:51:52+00:00", + "published-time": "2026-09-13T18:53:16+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00", + "published-time": "2024-03-03T12:39:44+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00", + "published-time": "2022-02-21T01:04:30+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "12.5.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7440368d94738d54f2c1de24dbd3871793bbb0dd", + "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^5.9.0", + "php": ">=8.3", + "phpunit/php-text-template": "^5.0.1", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.1.2", + "sebastian/lines-of-code": "^4.0.1", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.37" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" + } + ], + "time": "2026-10-03T14:03:50+00:00", + "published-time": "2026-10-03T14:04:33+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a248d1640ab059b075f53a2ef0f9856e864e06b5", + "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.33" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" + } + ], + "time": "2026-08-25T14:40:53+00:00", + "published-time": "2026-08-25T14:41:57+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:58+00:00", + "published-time": "2025-02-07T04:59:09+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "5.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/babab73b7ef9fae406f2eb3ee11323a61caa63d5", + "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.37" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-text-template", + "type": "tidelift" + } + ], + "time": "2026-10-03T04:51:29+00:00", + "published-time": "2026-10-03T04:54:39+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "8.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:38+00:00", + "published-time": "2025-02-07T04:59:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "12.5.45", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "ca97be2931de6a0adf824da12889cbf935a016e9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ca97be2931de6a0adf824da12889cbf935a016e9", + "reference": "ca97be2931de6a0adf824da12889cbf935a016e9", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-filter": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.14.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.8", + "phpunit/php-file-iterator": "^6.0.2", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.1", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.1", + "sebastian/comparator": "^7.1.8", + "sebastian/diff": "^7.0.1", + "sebastian/environment": "^8.1.2", + "sebastian/exporter": "^7.0.3", + "sebastian/global-state": "^8.0.3", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/recursion-context": "^7.0.1", + "sebastian/type": "^6.0.4", + "sebastian/version": "^6.0.2", + "staabm/side-effects-detector": "^1.0.5" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.45" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsoring.html", + "type": "other" + } + ], + "time": "2026-11-19T12:16:09+00:00", + "published-time": "2026-11-19T12:17:59+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "4.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" + } + ], + "time": "2026-05-17T05:29:34+00:00", + "published-time": "2026-05-17T05:30:34+00:00" + }, + { + "name": "sebastian/comparator", + "version": "7.1.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "7c65c1e79836812819705b473a90c12399542485" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7c65c1e79836812819705b473a90c12399542485", + "reference": "7c65c1e79836812819705b473a90c12399542485", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2026-05-21T04:45:25+00:00", + "published-time": "2026-05-21T04:45:36+00:00" + }, + { + "name": "sebastian/complexity", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:25+00:00", + "published-time": "2025-02-07T04:55:36+00:00" + }, + { + "name": "sebastian/diff", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", + "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.33", + "symfony/process": "^7.4.17" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/diff", + "type": "tidelift" + } + ], + "time": "2026-08-25T15:35:54+00:00", + "published-time": "2026-08-25T15:37:16+00:00" + }, + { + "name": "sebastian/environment", + "version": "8.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9d32c685773823b1983e256ae4ecd48a10d6e439", + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.26" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" + } + ], + "time": "2026-05-25T13:40:20+00:00", + "published-time": "2026-05-25T13:40:39+00:00" + }, + { + "name": "sebastian/exporter", + "version": "7.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/recursion-context": "^7.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" + } + ], + "time": "2026-05-20T04:37:17+00:00", + "published-time": "2026-05-20T04:37:31+00:00" + }, + { + "name": "sebastian/global-state", + "version": "8.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b164d3274d6537ab462591c5755f76a8f5b1aae9", + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0.1" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^12.5.28" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" + } + ], + "time": "2026-06-01T15:10:33+00:00", + "published-time": "2026-06-01T15:20:45+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d543b8ef219dcd8da262cbb958639a96bedba10e", + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.7.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/lines-of-code", + "type": "tidelift" + } + ], + "time": "2026-05-19T16:22:07+00:00", + "published-time": "2026-05-19T16:22:47+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:48+00:00", + "published-time": "2025-02-07T04:58:08+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:17+00:00", + "published-time": "2025-02-07T04:58:28+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-13T04:44:59+00:00", + "published-time": "2025-08-13T04:45:10+00:00" + }, + { + "name": "sebastian/type", + "version": "6.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "82ff822c2edc46724be9f7411d3163021f602773" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/82ff822c2edc46724be9f7411d3163021f602773", + "reference": "82ff822c2edc46724be9f7411d3163021f602773", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/6.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" + } + ], + "time": "2026-05-20T06:45:45+00:00", + "published-time": "2026-05-20T06:50:13+00:00" + }, + { + "name": "sebastian/version", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/a8b6643a19ba6c8125a473623e45fb8cbb0e4159", + "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/version", + "type": "tidelift" + } + ], + "time": "2026-11-09T06:30:55+00:00", + "published-time": "2026-11-09T06:31:20+00:00" + }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00", + "published-time": "2024-10-20T05:09:39+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-12-08T11:19:18+00:00", + "published-time": "2025-12-08T11:19:39+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "platform-overrides": { + "php": "8.3.0" + }, + "plugin-api-version": "2.11.0" +} diff --git a/vendor-bin/phpunit/composer.lock.license b/vendor-bin/phpunit/composer.lock.license new file mode 100644 index 0000000..f8b5362 --- /dev/null +++ b/vendor-bin/phpunit/composer.lock.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors +SPDX-License-Identifier: AGPL-3.0-or-later From 4197cba4017ef7ba3dd4590287f60888dbbbb66a Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:29:33 +0000 Subject: [PATCH 7/7] chore: centralize license annotations in REUSE.toml Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .l10nignore.license | 2 - AGENTS.md | 1 + REUSE.toml | 53 +++++++++++++++++++ composer.json.license | 2 - composer.lock.license | 2 - docs/LOCALIZATION.md | 2 +- .../ux/desktop-light-admin.png.license | 2 - .../ux/desktop-light-csv-dialog.png.license | 2 - .../ux/desktop-light-documents.png.license | 2 - .../ux/desktop-light-finance.png.license | 2 - .../ux/mobile-dark-banking.png.license | 2 - .../ux/mobile-dark-reports.png.license | 2 - docs/openapi.json.license | 2 - l10n/pt_BR.js.license | 2 - l10n/pt_BR.json.license | 2 - openapi.json.license | 2 - package-lock.json.license | 2 - package.json | 2 +- package.json.license | 2 - ...nancial-interchange-v1.schema.json.license | 2 - scripts/appstore-package.py | 6 +-- .../workflow-cases.json.license | 2 - tests/behat/composer.json.license | 2 - tests/behat/composer.lock.license | 2 - tests/ci/routes-expected.json.license | 2 - tests/e2e/fixtures/logo.png.license | 2 - .../interchange-v1/account-a.json.license | 2 - .../interchange-v1/account-b.json.license | 2 - .../interchange-v1/bank-a.json.license | 2 - .../interchange-v1/evidence-a.txt.license | 2 - .../interchange-v1/extension-a.json.license | 2 - .../interchange-v1/fiscal-a.json.license | 2 - .../interchange-v1/journal-a.json.license | 2 - .../interchange-v1/manifest.json.license | 2 - .../interchange-v1/obligation-a.json.license | 2 - .../fixtures/logo-valid.b64.license | 2 - vendor-bin/phpunit/composer.json.license | 2 - vendor-bin/phpunit/composer.lock.license | 2 - 38 files changed, 59 insertions(+), 71 deletions(-) delete mode 100644 .l10nignore.license create mode 100644 REUSE.toml delete mode 100644 composer.json.license delete mode 100644 composer.lock.license delete mode 100644 docs/evidence/ux/desktop-light-admin.png.license delete mode 100644 docs/evidence/ux/desktop-light-csv-dialog.png.license delete mode 100644 docs/evidence/ux/desktop-light-documents.png.license delete mode 100644 docs/evidence/ux/desktop-light-finance.png.license delete mode 100644 docs/evidence/ux/mobile-dark-banking.png.license delete mode 100644 docs/evidence/ux/mobile-dark-reports.png.license delete mode 100644 docs/openapi.json.license delete mode 100644 l10n/pt_BR.js.license delete mode 100644 l10n/pt_BR.json.license delete mode 100644 openapi.json.license delete mode 100644 package-lock.json.license delete mode 100644 package.json.license delete mode 100644 schemas/financial-interchange-v1.schema.json.license delete mode 100644 tests/acceptance/restricted-funding/workflow-cases.json.license delete mode 100644 tests/behat/composer.json.license delete mode 100644 tests/behat/composer.lock.license delete mode 100644 tests/ci/routes-expected.json.license delete mode 100644 tests/e2e/fixtures/logo.png.license delete mode 100644 tests/import/fixtures/interchange-v1/account-a.json.license delete mode 100644 tests/import/fixtures/interchange-v1/account-b.json.license delete mode 100644 tests/import/fixtures/interchange-v1/bank-a.json.license delete mode 100644 tests/import/fixtures/interchange-v1/evidence-a.txt.license delete mode 100644 tests/import/fixtures/interchange-v1/extension-a.json.license delete mode 100644 tests/import/fixtures/interchange-v1/fiscal-a.json.license delete mode 100644 tests/import/fixtures/interchange-v1/journal-a.json.license delete mode 100644 tests/import/fixtures/interchange-v1/manifest.json.license delete mode 100644 tests/import/fixtures/interchange-v1/obligation-a.json.license delete mode 100644 tests/integration/fixtures/logo-valid.b64.license delete mode 100644 vendor-bin/phpunit/composer.json.license delete mode 100644 vendor-bin/phpunit/composer.lock.license diff --git a/.l10nignore.license b/.l10nignore.license deleted file mode 100644 index f8b5362..0000000 --- a/.l10nignore.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/AGENTS.md b/AGENTS.md index 3b06ab5..96b3824 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,6 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later - Use \`OCP\DB\QueryBuilder\` for DB changes. Test SQLite, MariaDB and PostgreSQL; maintain immutable migrations. - No secrets in source, logs, screenshots, issues or PR descriptions. Remote banking, NFS-e, AI, payments and signatures are optional modules with explicit authorization. - Build and validate PHP and Vue separately. Never commit generated `js/` or `css/`; build assets for development, browser CI and the App Store archive. Keep OpenAPI versioned. A route or a green CI that skipped tests is not proof of financial correctness. +- Preserve SPDX headers in source files and use the centralized `REUSE.toml` for files that cannot contain SPDX headers. Do not add per-file `.license` sidecars, including during asset generation; retain third-party notices and license texts in release packages. - PHP unit tests use PHPUnit and mirror existing production classes: `lib/Domain/Currency/ExactConversion.php` maps to `tests/php/Unit/Domain/Currency/ExactConversionTest.php` and the matching namespace. Keep one test class per existing source class, do not invent generic or unmatched unit test classes, and place tests requiring an installed Nextcloud or database in the integration suite. Run `composer test:unit` (or filter by class/method during development). - PRs: incremental signed commits with DCO, no automatic squash; follow LibreCode repository governance. - Issue and epic creation requires exact human approval after drafting and review. Do not publish private commercial context. diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..84cbed0 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors +# SPDX-License-Identifier: AGPL-3.0-or-later +version = 1 +SPDX-PackageName = "librefinance" +SPDX-PackageSupplier = "LibreCode " +SPDX-PackageDownloadLocation = "https://github.com/LibreCodeCoop/librefinance/" + +[[annotations]] +path = [ + ".l10nignore", + "composer.json", + "composer.lock", + "docs/evidence/ux/*.png", + "l10n/*.js", + "l10n/*.json", + "openapi.json", + "package.json", + "package-lock.json", + "schemas/financial-interchange-v1.schema.json", + "tests/acceptance/restricted-funding/workflow-cases.json", + "tests/behat/composer.json", + "tests/behat/composer.lock", + "tests/ci/routes-expected.json", + "tests/e2e/fixtures/logo.png", + "tests/import/fixtures/interchange-v1/*.json", + "tests/import/fixtures/interchange-v1/evidence-a.txt", + "tests/integration/fixtures/logo-valid.b64", + "vendor-bin/**/composer.json", + "vendor-bin/**/composer.lock" +] +precedence = "aggregate" +SPDX-FileCopyrightText = "2026 LibreCode Coop and contributors" +SPDX-License-Identifier = "AGPL-3.0-or-later" + +# Generated bundles are not committed, but the release archive includes them, +# these annotations, LICENSES/ and the existing attribution notices in docs/. +[[annotations]] +path = ["js/main.js", "js/admin.js"] +precedence = "aggregate" +SPDX-FileCopyrightText = [ + "2026 LibreCode Coop and contributors", + "Original authors of bundled third-party packages (see docs/THIRD-PARTY.md)" +] +SPDX-License-Identifier = "AGPL-3.0-or-later AND GPL-3.0-or-later AND MIT AND Apache-2.0" + +[[annotations]] +path = ["css/main.css", "css/admin.css"] +precedence = "aggregate" +SPDX-FileCopyrightText = [ + "2026 LibreCode Coop and contributors", + "Original authors of bundled third-party dependencies (see docs/THIRD-PARTY.md)" +] +SPDX-License-Identifier = "AGPL-3.0-or-later AND GPL-3.0-or-later AND MIT" diff --git a/composer.json.license b/composer.json.license deleted file mode 100644 index f8b5362..0000000 --- a/composer.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/composer.lock.license b/composer.lock.license deleted file mode 100644 index f8b5362..0000000 --- a/composer.lock.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/LOCALIZATION.md b/docs/LOCALIZATION.md index 7f1451d..83bc92e 100644 --- a/docs/LOCALIZATION.md +++ b/docs/LOCALIZATION.md @@ -42,7 +42,7 @@ npm run build ``` Review extraction warnings and the resulting diff. Preserve SPDX notices in -the template, catalogs and sidecar license files; keep source references +the template and the catalog annotations in REUSE.toml; keep source references repository-relative. Translate each new source message in the PO catalog, review placeholders and plurals, and commit the generated runtime catalogs alongside their sources. Do not edit generated catalogs independently. diff --git a/docs/evidence/ux/desktop-light-admin.png.license b/docs/evidence/ux/desktop-light-admin.png.license deleted file mode 100644 index f8b5362..0000000 --- a/docs/evidence/ux/desktop-light-admin.png.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/evidence/ux/desktop-light-csv-dialog.png.license b/docs/evidence/ux/desktop-light-csv-dialog.png.license deleted file mode 100644 index f8b5362..0000000 --- a/docs/evidence/ux/desktop-light-csv-dialog.png.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/evidence/ux/desktop-light-documents.png.license b/docs/evidence/ux/desktop-light-documents.png.license deleted file mode 100644 index f8b5362..0000000 --- a/docs/evidence/ux/desktop-light-documents.png.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/evidence/ux/desktop-light-finance.png.license b/docs/evidence/ux/desktop-light-finance.png.license deleted file mode 100644 index f8b5362..0000000 --- a/docs/evidence/ux/desktop-light-finance.png.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/evidence/ux/mobile-dark-banking.png.license b/docs/evidence/ux/mobile-dark-banking.png.license deleted file mode 100644 index f8b5362..0000000 --- a/docs/evidence/ux/mobile-dark-banking.png.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/evidence/ux/mobile-dark-reports.png.license b/docs/evidence/ux/mobile-dark-reports.png.license deleted file mode 100644 index f8b5362..0000000 --- a/docs/evidence/ux/mobile-dark-reports.png.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/docs/openapi.json.license b/docs/openapi.json.license deleted file mode 100644 index f8b5362..0000000 --- a/docs/openapi.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/l10n/pt_BR.js.license b/l10n/pt_BR.js.license deleted file mode 100644 index f8b5362..0000000 --- a/l10n/pt_BR.js.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/l10n/pt_BR.json.license b/l10n/pt_BR.json.license deleted file mode 100644 index f8b5362..0000000 --- a/l10n/pt_BR.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/openapi.json.license b/openapi.json.license deleted file mode 100644 index f8b5362..0000000 --- a/openapi.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/package-lock.json.license b/package-lock.json.license deleted file mode 100644 index f8b5362..0000000 --- a/package-lock.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/package.json b/package.json index 094fc30..a093303 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.18.11", "type": "module", "scripts": { - "build": "vite build && mkdir -p css && mv js/style.css css/main.css && vite build --config vite.admin.config.js && mv js/admin-style.css css/admin.css && cp docs/BUNDLE-ATTRIBUTION.txt js/main.js.license && cp docs/BUNDLE-ATTRIBUTION.txt js/admin.js.license && cp docs/CSS-BUNDLE-ATTRIBUTION.txt css/main.css.license && cp docs/CSS-BUNDLE-ATTRIBUTION.txt css/admin.css.license", + "build": "vite build && mkdir -p css && mv js/style.css css/main.css && vite build --config vite.admin.config.js && mv js/admin-style.css css/admin.css", "dev": "vite build --watch", "test": "node --test tests/frontend/*.test.mjs", "test:e2e": "playwright test", diff --git a/package.json.license b/package.json.license deleted file mode 100644 index f8b5362..0000000 --- a/package.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/schemas/financial-interchange-v1.schema.json.license b/schemas/financial-interchange-v1.schema.json.license deleted file mode 100644 index f8b5362..0000000 --- a/schemas/financial-interchange-v1.schema.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/scripts/appstore-package.py b/scripts/appstore-package.py index f249eb0..b20f6ef 100644 --- a/scripts/appstore-package.py +++ b/scripts/appstore-package.py @@ -15,11 +15,11 @@ RUNTIME = ( "appinfo", "lib", "templates", "l10n", "img", "schemas", "docs", "LICENSE", "LICENSES", "README.md", "SECURITY.md", "composer.json", - "composer.json.license", "openapi.json", "openapi.json.license", + "REUSE.toml", "openapi.json", ) REQUIRED_ASSETS = ( - "js/main.js", "js/main.js.license", "js/admin.js", "js/admin.js.license", - "css/main.css", "css/main.css.license", "css/admin.css", "css/admin.css.license", + "js/main.js", "js/admin.js", + "css/main.css", "css/admin.css", ) diff --git a/tests/acceptance/restricted-funding/workflow-cases.json.license b/tests/acceptance/restricted-funding/workflow-cases.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/acceptance/restricted-funding/workflow-cases.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/behat/composer.json.license b/tests/behat/composer.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/behat/composer.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/behat/composer.lock.license b/tests/behat/composer.lock.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/behat/composer.lock.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/ci/routes-expected.json.license b/tests/ci/routes-expected.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/ci/routes-expected.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/e2e/fixtures/logo.png.license b/tests/e2e/fixtures/logo.png.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/e2e/fixtures/logo.png.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/account-a.json.license b/tests/import/fixtures/interchange-v1/account-a.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/account-a.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/account-b.json.license b/tests/import/fixtures/interchange-v1/account-b.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/account-b.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/bank-a.json.license b/tests/import/fixtures/interchange-v1/bank-a.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/bank-a.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/evidence-a.txt.license b/tests/import/fixtures/interchange-v1/evidence-a.txt.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/evidence-a.txt.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/extension-a.json.license b/tests/import/fixtures/interchange-v1/extension-a.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/extension-a.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/fiscal-a.json.license b/tests/import/fixtures/interchange-v1/fiscal-a.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/fiscal-a.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/journal-a.json.license b/tests/import/fixtures/interchange-v1/journal-a.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/journal-a.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/manifest.json.license b/tests/import/fixtures/interchange-v1/manifest.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/manifest.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/import/fixtures/interchange-v1/obligation-a.json.license b/tests/import/fixtures/interchange-v1/obligation-a.json.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/import/fixtures/interchange-v1/obligation-a.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/integration/fixtures/logo-valid.b64.license b/tests/integration/fixtures/logo-valid.b64.license deleted file mode 100644 index f8b5362..0000000 --- a/tests/integration/fixtures/logo-valid.b64.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/vendor-bin/phpunit/composer.json.license b/vendor-bin/phpunit/composer.json.license deleted file mode 100644 index f8b5362..0000000 --- a/vendor-bin/phpunit/composer.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/vendor-bin/phpunit/composer.lock.license b/vendor-bin/phpunit/composer.lock.license deleted file mode 100644 index f8b5362..0000000 --- a/vendor-bin/phpunit/composer.lock.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2026 LibreCode Coop and contributors -SPDX-License-Identifier: AGPL-3.0-or-later