From bdd7298108d7abc5d7273a9ed07f833eb4bee180 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sun, 14 Dec 2014 06:07:33 +0100 Subject: [PATCH] #167 - Remove code specifically designed to skip tests in PHP <= 5.4.1 --- .../Functional/RemoteObjectFunctionalTest.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/ProxyManagerTest/Functional/RemoteObjectFunctionalTest.php b/tests/ProxyManagerTest/Functional/RemoteObjectFunctionalTest.php index 96e24c8db..4c2c4af95 100644 --- a/tests/ProxyManagerTest/Functional/RemoteObjectFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/RemoteObjectFunctionalTest.php @@ -173,7 +173,7 @@ public function getProxyMethods() { $selfHintParam = new ClassWithSelfHint(); - $data = [ + return [ [ 'ProxyManagerTestAsset\RemoteProxy\FooServiceInterface', 'foo', @@ -198,19 +198,13 @@ public function getProxyMethods() ['baz'], 'baz remote' ], - ]; - - if (PHP_VERSION_ID >= 50401) { - // PHP < 5.4.1 misbehaves, throwing strict standards, see https://bugs.php.net/bug.php?id=60573 - $data[] = [ + [ new ClassWithSelfHint(), 'selfHintMethod', [$selfHintParam], $selfHintParam - ]; - } - - return $data; + ], + ]; } /**