Skip to content

Commit

Permalink
Merge pull request #135 from ltb-project/phpunit
Browse files Browse the repository at this point in the history
Set phpunit in CI
  • Loading branch information
coudot authored Sep 15, 2023
2 parents 17e13d4 + 3aa7654 commit c44f7dc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on: [push]

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
php_version: "7.4"
php_extensions: ldap
- name: PHPUnit Tests for php7.4
uses: php-actions/phpunit@v3
with:
configuration: tests/phpunit.xml
version: 5.7.25
php_version: 7.4
args: --coverage-text
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/LangTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
class LangTest extends PHPUnit_Framework_TestCase
class LangTest extends PHPUnit\Framework\TestCase
{
/**
* Test language files for missing and excess translations
Expand Down
9 changes: 9 additions & 0 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<testsuites>
<testsuite name="main">
<directory suffix="Test.php">.</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>

0 comments on commit c44f7dc

Please sign in to comment.