Drop monkey-patch on mock objects generator.

Reverts 72f85ebc55. No longer needed with PHPUnit 8.
This commit is contained in:
Ben Thomson 2020-01-21 09:03:49 +08:00
parent 0c2dc29f22
commit e33032441b
No known key found for this signature in database
GPG Key ID: B2BAFACC5ED68F87
2 changed files with 0 additions and 1196 deletions

View File

@ -13,14 +13,3 @@ $loader->addDirectories([
'modules',
'plugins'
]);
/*
* Monkey patch PHPUnit\Framework\MockObject\Generator to avoid
* "Function ReflectionType::__toString() is deprecated" warnings
*/
$generatorPatchPath = __DIR__ . '/resources/patches/php-generator-7.php';
$generatorSourcePath = __DIR__ . '/../vendor/phpunit/phpunit-mock-objects/src/Generator.php';
if (file_exists($generatorSourcePath)) {
file_put_contents($generatorSourcePath, file_get_contents($generatorPatchPath));
}

File diff suppressed because it is too large Load Diff