Skip to content

Commit

Permalink
fix unit tests for github workflows (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Mar 29, 2024
1 parent b3c82b6 commit d9c81ae
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

14 changes: 14 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd">
<testsuites>
<testsuite name="main">
<directory suffix="Test.php">tests/Ltb</directory>
</testsuite>
</testsuites>
<logging/>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>
9 changes: 0 additions & 9 deletions tests/Ltb/phpunit.xml

This file was deleted.

0 comments on commit d9c81ae

Please sign in to comment.