mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Drop monkey-patch on mock objects generator.
Reverts 72f85ebc55
. No longer needed with PHPUnit 8.
This commit is contained in:
parent
0c2dc29f22
commit
e33032441b
@ -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
Loading…
x
Reference in New Issue
Block a user