Check if file is renamed in fix-phpunit.php

[MAILPOET-3395]
This commit is contained in:
Jan Lysý
2021-02-04 13:25:14 +01:00
committed by Veljko V
parent 4b6a0bd1c9
commit 1999c02e3d

View File

@@ -10,8 +10,10 @@ if (!file_exists(__DIR__ . '/../vendor/phpunit/phpunit/src/Framework/MockObject/
exit;
}
// Rename Match interface source file to Matcher
exec('mv ' . __DIR__ . '/../vendor/phpunit/phpunit/src/Framework/MockObject/Builder/Match.php ' . __DIR__ . '/../vendor/phpunit/phpunit/src/Framework/MockObject/Builder/MockMatch.php');
if (!file_exists(__DIR__ . '/../vendor/phpunit/phpunit/src/Framework/MockObject/Builder/MockMatch.php')) {
// Rename Match interface source file to Matcher
exec('mv ' . __DIR__ . '/../vendor/phpunit/phpunit/src/Framework/MockObject/Builder/Match.php ' . __DIR__ . '/../vendor/phpunit/phpunit/src/Framework/MockObject/Builder/MockMatch.php');
}
// Fixes for PHP8 Compatibility
$replacements = [