[packages/phpunit/dev-4.8: 1/2] up to 4.8.35, last series supporting php 5.3
glen
glen at pld-linux.org
Mon Jul 17 21:09:59 CEST 2017
commit 2b6f8d98e166b81a8a6bdcb91aa5e0328e672d0a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed May 3 21:35:13 2017 +0300
up to 4.8.35, last series supporting php 5.3
autoload.patch | 21 +++++++++------------
phpunit.spec | 10 +++++-----
2 files changed, 14 insertions(+), 17 deletions(-)
---
diff --git a/phpunit.spec b/phpunit.spec
index 04e86a2..a846042 100644
--- a/phpunit.spec
+++ b/phpunit.spec
@@ -5,15 +5,15 @@
Summary: %{pearname} - regression testing framework for unit tests
Summary(pl.UTF-8): %{pearname} - zestaw testów regresyjnych
Name: phpunit
-# we use 3.7-lts version
-Version: 3.7.38
-Release: 1
+# use last version supporting php 5.3
+Version: 4.8.35
+Release: 0.1
License: BSD
Group: Development/Languages/PHP
Source0: https://github.com/sebastianbergmann/phpunit/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: d7452511b562cc582f204da0b180ff42
+# Source0-md5: 38880d4f16fa246e544470ad0027a3cb
Patch0: autoload.patch
-URL: http://www.phpunit.de/
+URL: https://phpunit.de/
BuildRequires: php-channel(components.ez.no)
BuildRequires: php-channel(pear.phpunit.de)
BuildRequires: php-channel(pear.symfony-project.com)
diff --git a/autoload.patch b/autoload.patch
index c92ea3c..e7869a2 100644
--- a/autoload.patch
+++ b/autoload.patch
@@ -1,20 +1,17 @@
---- phpunit-3.7.35/phpunit.php~ 2015-11-10 16:39:54.000000000 +0200
-+++ phpunit-3.7.35/phpunit.php 2015-11-10 16:39:57.907131109 +0200
+--- phpunit-4.8.35/phpunit~ 2017-05-03 21:31:46.000000000 +0300
++++ phpunit-4.8.35/phpunit 2017-05-03 21:33:36.879408483 +0300
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
<?php
/* PHPUnit
*
-@@ -37,10 +37,6 @@
+@@ -27,7 +27,7 @@
+ ini_set('date.timezone', 'UTC');
+ }
- define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
+-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
++foreach (array('/usr/share/php/PHPUnit/autoload.php', __DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
+ if (file_exists($file)) {
+ define('PHPUNIT_COMPOSER_INSTALL', $file);
--if (strpos('@php_bin@', '@php_bin') === 0) {
-- require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'PHPUnit' . DIRECTORY_SEPARATOR . 'Autoload.php';
--} else {
-- require '@php_dir@' . DIRECTORY_SEPARATOR . 'PHPUnit' . DIRECTORY_SEPARATOR . 'Autoload.php';
--}
-+require '/usr/share/pear/PHPUnit/Autoload.php';
-
- PHPUnit_TextUI_Command::main();
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/phpunit.git/commitdiff/7fec05e06c3da8705aa763f5a809b0f50ef80048
More information about the pld-cvs-commit
mailing list