File: apply-patches.php

package info (click to toggle)
php-nrk-predis 1.1.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,844 kB
  • sloc: php: 31,854; makefile: 16
file content (16 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * Apply patches to support newer PHP versions.
 */

$patches = array(
    'phpunit_mock_objects.patch' => 'phpunit/phpunit-mock-objects',
    'phpunit_php7.patch' => 'phpunit/phpunit',
    'phpunit_php8.patch' => 'phpunit/phpunit',
    'phpunit_php81.patch' => 'phpunit/phpunit',
);

foreach ($patches as $patch => $package) {
    chdir(__DIR__.'/../vendor/'.$package);
    passthru(sprintf('patch -p1 -f < ../../../tests/%s', $patch));
}