apply-patches.php 402 B

12345678910111213141516
  1. <?php
  2. /**
  3. * Apply patches to support newer PHP versions.
  4. */
  5. $patches = array(
  6. 'phpunit_mock_objects.patch' => 'phpunit/phpunit-mock-objects',
  7. 'phpunit_php7.patch' => 'phpunit/phpunit',
  8. 'phpunit_php8.patch' => 'phpunit/phpunit',
  9. );
  10. foreach ($patches as $patch => $package) {
  11. chdir(__DIR__.'/../vendor/'.$package);
  12. passthru(sprintf('patch -p1 -f < ../../../tests/%s', $patch));
  13. }