From d9c81aec6414f98b07d2e126c77b7cd97d74e02a Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Fri, 29 Mar 2024 10:23:54 +0100 Subject: [PATCH] fix unit tests for github workflows (#8) --- .github/workflows/unittests.yml | 10 ++++++---- phpunit.xml | 14 ++++++++++++++ tests/Ltb/phpunit.xml | 9 --------- 3 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 phpunit.xml delete mode 100644 tests/Ltb/phpunit.xml diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 750b074..e03e5cd 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -13,13 +13,15 @@ jobs: with: php_version: 8.3 command: update - php_extensions: ldap - - name: PHPUnit Tests for php8.2 + php_extensions: ldap xdebug + - name: PHPUnit Tests for php8.3 uses: php-actions/phpunit@v3 + env: + XDEBUG_MODE: coverage with: - configuration: tests/Ltb/phpunit.xml + configuration: phpunit.xml version: latest php_version: 8.3 - php_extensions: ldap + php_extensions: ldap xdebug args: --coverage-text diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..0324c62 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,14 @@ + + + + + tests/Ltb + + + + + + src + + + diff --git a/tests/Ltb/phpunit.xml b/tests/Ltb/phpunit.xml deleted file mode 100644 index d6a1379..0000000 --- a/tests/Ltb/phpunit.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - . - - - -