summaryrefslogtreecommitdiffstats
path: root/phpunit-mock-objects-upstream.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-09-07 18:59:21 +0200
committerRemi Collet <fedora@famillecollet.com>2014-09-07 18:59:21 +0200
commited0314cd1c344de1b5863183ebd5b694a906cac9 (patch)
tree1f0450d99973c1ccbeb76f91cfbb800ede9e398f /phpunit-mock-objects-upstream.patch
parent2ef54472011bfe79669aa93a2f1d8f3123747f4d (diff)
php-phpunit-PHPUnit-MockObject: 2.2.1
Diffstat (limited to 'phpunit-mock-objects-upstream.patch')
-rw-r--r--phpunit-mock-objects-upstream.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/phpunit-mock-objects-upstream.patch b/phpunit-mock-objects-upstream.patch
new file mode 100644
index 0000000..846679b
--- /dev/null
+++ b/phpunit-mock-objects-upstream.patch
@@ -0,0 +1,23 @@
+From fe3dc6c5d6a8998ae917aed0b2f09fd4cdde16ba Mon Sep 17 00:00:00 2001
+From: Jeff Welch <whatthejeff@gmail.com>
+Date: Sat, 6 Sep 2014 13:37:44 -0400
+Subject: [PATCH] Refs #197: Skip variadics test on PHP < 5.6.0.
+
+---
+ tests/MockObject/class_with_method_with_variadic_arguments.phpt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tests/MockObject/class_with_method_with_variadic_arguments.phpt b/tests/MockObject/class_with_method_with_variadic_arguments.phpt
+index bb38da7..8fb9a3c 100644
+--- a/tests/MockObject/class_with_method_with_variadic_arguments.phpt
++++ b/tests/MockObject/class_with_method_with_variadic_arguments.phpt
+@@ -1,5 +1,9 @@
+ --TEST--
+ PHPUnit_Framework_MockObject_Generator::generate('ClassWithMethodWithVariadicArguments', array(), 'MockFoo', TRUE, TRUE)
++--SKIPIF--
++<?php
++if (version_compare(PHP_VERSION, '5.6.0', '<')) print 'skip: PHP >= 5.6.0 required';
++?>
+ --FILE--
+ <?php
+ class ClassWithMethodWithVariadicArguments