Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Fix fatal error with diff class when assertEquals not same. (#2655)
Browse files Browse the repository at this point in the history
Update phpunit from version 6 to version 7
  • Loading branch information
ddurieux authored and trasher committed Sep 17, 2018
1 parent 1dbd712 commit de0dd5a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ before_install:
- php scripts/cliupdate.php |grep -q "No migration needed." || (echo "scripts/cliupdate.php FAILED" && exit 1)
- popd
- ant -Dclearsavepoint='true' -Dbasedir=. -f ./glpi/plugins/fusioninventory/phpunit/build.xml composer
- pushd glpi/plugins/fusioninventory/phpunit/
- composer install
- popd

before_script:
- phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true
Expand Down
2 changes: 1 addition & 1 deletion phpunit/1_Unit/ComputerUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ public function ComputerMonitor() {
'comment' => null,
'serial' => 'UBYVUTFYEIUI',
'otherserial' => null,
'size' => '0',
'size' => '0.00',
'have_micro' => '0',
'have_speaker' => '0',
'have_subd' => '0',
Expand Down
2 changes: 2 additions & 0 deletions phpunit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
);
}

require FUSINV_ROOT . '/phpunit/vendor/autoload.php';

$_SESSION['glpiprofiles'] = ['4' => ['entities' => 0]];

$_SESSION['glpi_plugin_fusioninventory_profile']['unmanaged'] = 'w';
Expand Down
2 changes: 1 addition & 1 deletion phpunit/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license" : "AGPL-3.0",

"require-dev": {
"phpunit/phpunit": "^5 || ^6",
"phpunit/phpunit": "^5 || ^6 || ^7",
"phploc/phploc": "*",
"pdepend/pdepend" : "1.1.0",
"theseer/phpdox" : "*",
Expand Down
3 changes: 3 additions & 0 deletions phpunit/testsuites_install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
bootstrap="bootstrap.php"
processIsolation="false"
backupGlobals="false"
convertErrorsToExceptions="false"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false"
>
<logging>
<log type="junit" target="../../../../build/logs/junit_install.xml" />
Expand Down
3 changes: 3 additions & 0 deletions phpunit/testsuites_integration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
bootstrap="bootstrap.php"
processIsolation="false"
backupGlobals="false"
convertErrorsToExceptions="false"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false"
>
<logging>
<log type="junit" target="../../../../build/logs/junit_integration.xml" />
Expand Down
3 changes: 3 additions & 0 deletions phpunit/testsuites_unit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
bootstrap="bootstrap.php"
processIsolation="false"
backupGlobals="false"
convertErrorsToExceptions="false"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false"
>
<logging>
<log type="junit" target="../../../../build/logs/junit_unit.xml" />
Expand Down
3 changes: 3 additions & 0 deletions phpunit/testsuites_update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
bootstrap="bootstrap.php"
processIsolation="false"
backupGlobals="false"
convertErrorsToExceptions="false"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false"
>
<logging>
<log type="junit" target="../../../../build/logs/junit_update.xml" />
Expand Down

0 comments on commit de0dd5a

Please sign in to comment.