mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:25:22 +01:00
fix Travis errors with phpunit 4.8 under PHP < 7
This commit is contained in:
parent
19e9a344a3
commit
911ecdea99
@ -17,7 +17,6 @@ namespace EGroupware\Api\Mail;
|
||||
require_once realpath(__DIR__.'/../../loader/common.php'); // autoloader & check_load_extension
|
||||
|
||||
use EGroupware\Api;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
use EGroupware\Api\Mail\Credentials;
|
||||
|
||||
@ -27,7 +26,7 @@ use EGroupware\Api\Mail\Credentials;
|
||||
* Only testing en&decryption of mail passwords so far.
|
||||
* Further tests would need database.
|
||||
*/
|
||||
class CredentialsTest extends TestCase
|
||||
class CredentialsTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* Test new 16.1 AES password encryption with OpenSSL
|
||||
|
@ -2,7 +2,7 @@
|
||||
################################################################################
|
||||
### Tool to check for PHP Syntax errors
|
||||
### Usage: doc/php_syntax_check [file or directory, defaults to whole egrouware]
|
||||
### Will output all PHP Fatal, Parse erros and also Deprecated incl. filename
|
||||
### Will output all PHP Fatal, Parse errors and also Deprecated incl. filename
|
||||
### Exit-status: 0 on no error, but maybe Deprecated warnings, 1 on error
|
||||
################################################################################
|
||||
|
||||
@ -21,6 +21,8 @@ find ${@-.} -name '*.php' -exec php -l {} \; 2>&1 | \
|
||||
grep -v 'vendor/pear-pear.php.net/PEAR/PEAR/Autoloader.php' | \
|
||||
# exclude composer conditional included autoload_static.php, as it requires PHP 5.6+
|
||||
grep -v 'vendor/composer/autoload_static.php' | \
|
||||
# exclude vendor/phpunit it shows many PHP Parse errors in PHP < 7.0
|
||||
grep -v 'vendor/phpunit' | \
|
||||
# phpFreeChat does not work with PHP7
|
||||
grep -v 'phpfreechat/phpfreechat/' | \
|
||||
perl -pe 'END { exit $status } $status=1 if /^(PHP Fatal|(PHP )?Parse error)/;' > /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user