Skip to content

Commit

Permalink
Adjust Travis and phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Mar 2, 2021
1 parent 32afc94 commit 0e1f725
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ before_install:

before_script:
- phpenv config-rm xdebug.ini
- export XDEBUG_MODE=coverage

script:
- vendor/bin/phpunit
Expand Down
36 changes: 19 additions & 17 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="OneLogin PHP-SAML Test Suite">
<directory>./tests/src</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory>./src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="./tests/build/coverage" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-xml" target="./tests/build/logfile.xml"/>
<log type="coverage-clover" target="./tests/build/logs/clover.xml"/>
<log type="coverage-php" target="./tests/build/logs/coverage.cov"/>
</logging>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" verbose="true">
<coverage processUncoveredFiles="true">
<include>
<directory>./src</directory>
</include>
<report>
<clover outputFile="tests/build/logs/clover.xml"/>
<html outputDirectory="tests/build/coverage" lowUpperBound="35" highLowerBound="70"/>
<php outputFile="tests/build/logs/coverage.cov"/>
<xml outputDirectory="tests/build/logfile.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="OneLogin PHP-SAML Test Suite">
<directory>./tests/src</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>
3 changes: 3 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');

include ('compatibility.php');

Expand Down

0 comments on commit 0e1f725

Please sign in to comment.