From cd6b059422c9ed80661a9f7cd070b54143e9835b Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Thu, 4 Feb 2021 22:41:03 +0100 Subject: [PATCH 01/53] travis ci: add php 7.1, 7.2, 7.3, 7.4 and 8.0 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2052749a2..2cbf9b5bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,11 @@ php: - '5.5' - '5.6' - '7.0' + - '7.1' + - '7.2' + - '7.3' + - '7.4' + - '8.0' before_script: - phpenv config-add test/resources/php.ini @@ -20,4 +25,4 @@ after_script: addons: code_climate: - repo_token: 5d81d5163c7f9b810b46451042cb0069d24c91a5887466ba774bf89a56f0187e \ No newline at end of file + repo_token: 5d81d5163c7f9b810b46451042cb0069d24c91a5887466ba774bf89a56f0187e From 42fd4f138d800673f430cef273d92ffc5351d26e Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Fri, 5 Feb 2021 09:41:03 +0100 Subject: [PATCH 02/53] Update .travis.yml php version test --- .travis.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2cbf9b5bd..da3a19b8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,11 @@ language: php + +dist: + - trusty + - bionic + - xenial + - focal + php: - '5.4' - '5.5' @@ -10,6 +17,27 @@ php: - '7.4' - '8.0' +jobs: + include: + - php: 5.4 + dist: trusty + - php: 5.5 + dist: trusty + - php: 5.6 + dist: xenial + - php: 7.0 + dist: xenial + - php: 7.1 + dist: xenial + - php: 7.2 + dist: xenial + - php: 7.3 + dist: xenial + - php: 7.4 + dist: xenial + - php: 8.0 + dist: focal + before_script: - phpenv config-add test/resources/php.ini From c371ad3b42eeb29705e1088efc20a2974eff2485 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 12:37:00 +0100 Subject: [PATCH 03/53] phing update --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 83e4c798d..8b95ef682 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/phpdocumentor": "2.*", - "phing/phing": "2.*", + "phing/phing": "2.16.4", "phpmd/phpmd": "2.*", "satooshi/php-coveralls": "1.0.1", "evert/phpdoc-md" : "~0.1.1", From d30358337a7e6995b46a5840d905522b607484d0 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 12:46:19 +0100 Subject: [PATCH 04/53] Update .travis.yml --- .travis.yml | 53 ++++++++++++++++++----------------------------------- 1 file changed, 18 insertions(+), 35 deletions(-) diff --git a/.travis.yml b/.travis.yml index da3a19b8a..a8d8f036b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,42 +1,25 @@ language: php -dist: - - trusty - - bionic - - xenial - - focal - -php: - - '5.4' - - '5.5' - - '5.6' - - '7.0' - - '7.1' - - '7.2' - - '7.3' - - '7.4' - - '8.0' - jobs: include: - - php: 5.4 - dist: trusty - - php: 5.5 - dist: trusty - - php: 5.6 - dist: xenial - - php: 7.0 - dist: xenial - - php: 7.1 - dist: xenial - - php: 7.2 - dist: xenial - - php: 7.3 - dist: xenial - - php: 7.4 - dist: xenial - - php: 8.0 - dist: focal + - php: 5.4 + dist: trusty + - php: 5.5 + dist: trusty + - php: 5.6 + dist: xenial + - php: 7.0 + dist: xenial + - php: 7.1 + dist: xenial + - php: 7.2 + dist: xenial + - php: 7.3 + dist: xenial + - php: 7.4 + dist: xenial + - php: 8.0 + dist: focal before_script: - phpenv config-add test/resources/php.ini From baaa354302be833831f373bb8293213a90d0d004 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 13:29:53 +0100 Subject: [PATCH 05/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8b95ef682..a351a28f1 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "4.*", + "phpunit/phpunit": "4.8.36", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/phpdocumentor": "2.*", From 13e383613fc894431b2bb5e04120536222f6098d Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 13:35:39 +0100 Subject: [PATCH 06/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a351a28f1..8e67b6798 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "satooshi/php-coveralls": "1.0.1", "evert/phpdoc-md" : "~0.1.1", "codeclimate/php-test-reporter": "dev-master", - "sebastian/phpcpd": "*", + "sebastian/phpcpd": "2.0.4", "marcelog/pagi": "2.*" } } From f85389e5dce80a090a1867081d3e24ff3da4cb8f Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 13:40:04 +0100 Subject: [PATCH 07/53] Update php.ini --- test/resources/php.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/resources/php.ini b/test/resources/php.ini index 2e67c2995..125753398 100644 --- a/test/resources/php.ini +++ b/test/resources/php.ini @@ -1 +1,2 @@ -date.timezone = "UTC" \ No newline at end of file +date.timezone = "UTC" +xdebug.mode = "coverage" From 66a70b3f52022dfc21b6d2aee240255adba648c2 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 13:45:58 +0100 Subject: [PATCH 08/53] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a8d8f036b..a72c2ce80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ before_script: - phpenv config-add test/resources/php.ini install: - - composer install + - composer install --ignore-platform-reqs script: - vendor/bin/phing travis From 8fb1465319d6d1983afffdc706e460c125be83c9 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 16:59:31 +0100 Subject: [PATCH 09/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8e67b6798..bae85b994 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "require-dev": { "phpunit/phpunit": "4.8.36", "monolog/monolog": "1.*", - "squizlabs/php_codesniffer": "2.*", + "squizlabs/php_codesniffer": "3.*", "phpdocumentor/phpdocumentor": "2.*", "phing/phing": "2.16.4", "phpmd/phpmd": "2.*", From f49f6992d53e8266f7824ae75eedbf9b64618f95 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 19:00:30 +0100 Subject: [PATCH 10/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bae85b994..61296b4fe 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "4.8.36", + "phpunit/phpunit": "*", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "3.*", "phpdocumentor/phpdocumentor": "2.*", From f79ebfb9ec4001db0ae2acc0c3a2c1b176291e5c Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 19:43:34 +0100 Subject: [PATCH 11/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 61296b4fe..bae85b994 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "*", + "phpunit/phpunit": "4.8.36", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "3.*", "phpdocumentor/phpdocumentor": "2.*", From c7e5ad050ea65b0b7f5da91dfed4735fa2bd65c1 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 20:03:19 +0100 Subject: [PATCH 12/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bae85b994..c700db6cd 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "require-dev": { "phpunit/phpunit": "4.8.36", "monolog/monolog": "1.*", - "squizlabs/php_codesniffer": "3.*", + "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", "phing/phing": "2.16.4", "phpmd/phpmd": "2.*", From 07f9b106e4e09fda5d49485d944c0628487dc9e0 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 20:14:45 +0100 Subject: [PATCH 13/53] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a72c2ce80..a8d8f036b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ before_script: - phpenv config-add test/resources/php.ini install: - - composer install --ignore-platform-reqs + - composer install script: - vendor/bin/phing travis From 21e4739e4cb9676878b4939dc1e5da605b41527c Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 20:19:31 +0100 Subject: [PATCH 14/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c700db6cd..325bf2dfb 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", - "phing/phing": "2.16.4", + "phing/phing": "2.16.4 || 3.*", "phpmd/phpmd": "2.*", "satooshi/php-coveralls": "1.0.1", "evert/phpdoc-md" : "~0.1.1", From 15626b6fffa5d5bb2a42f43235c2937472ed47c1 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 20:25:28 +0100 Subject: [PATCH 15/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 325bf2dfb..250818b76 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", - "phing/phing": "2.16.4 || 3.*", + "phing/phing": "2.16.4 || 3.* || 2.*", "phpmd/phpmd": "2.*", "satooshi/php-coveralls": "1.0.1", "evert/phpdoc-md" : "~0.1.1", From 796747e247df0a096f9c58b3651dc5c0b7086454 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 21:49:05 +0100 Subject: [PATCH 16/53] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a8d8f036b..ea1420889 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ before_script: - phpenv config-add test/resources/php.ini install: - - composer install + - composer install || composer install --ignore-platform-reqs script: - vendor/bin/phing travis From 9595f7597d1f9d7362b3b9d761c4d88db39b9039 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 21:53:56 +0100 Subject: [PATCH 17/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 250818b76..9300e43db 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "4.8.36", + "phpunit/phpunit": "4.8.36 || 9.*", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", From 617f910bbf2222c414b8eb188a06bcb4fbf36121 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 22:07:27 +0100 Subject: [PATCH 18/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9300e43db..26c4f07fd 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "4.8.36 || 9.*", + "phpunit/phpunit": "6.*|4.8.36", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", From b5df186a33b00128a21e1366a4717d5dcaede4aa Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 22:15:17 +0100 Subject: [PATCH 19/53] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 26c4f07fd..4a9e710fe 100644 --- a/composer.json +++ b/composer.json @@ -23,11 +23,11 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "6.*|4.8.36", + "phpunit/phpunit": "5.*|4.8.36", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", - "phing/phing": "2.16.4 || 3.* || 2.*", + "phing/phing": "2.4.12|2.16.4", "phpmd/phpmd": "2.*", "satooshi/php-coveralls": "1.0.1", "evert/phpdoc-md" : "~0.1.1", From e5c9aef8495227402e0f6a46e720c24f973d093c Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 22:24:52 +0100 Subject: [PATCH 20/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4a9e710fe..cdd8ba25d 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "5.*|4.8.36", + "phpunit/phpunit": "9.*|5.*|4.8.36", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", From 2290f26c93962f6d87dd2e937846fd66195d2f77 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 23:01:02 +0100 Subject: [PATCH 21/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cdd8ba25d..8217bb41f 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", - "phing/phing": "2.4.12|2.16.4", + "phing/phing": "2.4.12|2.16.3|2.16.4", "phpmd/phpmd": "2.*", "satooshi/php-coveralls": "1.0.1", "evert/phpdoc-md" : "~0.1.1", From c8be6e55eead0eece3df0cb6596bdd9a3da9a77e Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 23:01:31 +0100 Subject: [PATCH 22/53] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8217bb41f..4bb21c3ec 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.* || 3.*", "phpdocumentor/phpdocumentor": "2.*", - "phing/phing": "2.4.12|2.16.3|2.16.4", + "phing/phing": "2.16.3", "phpmd/phpmd": "2.*", "satooshi/php-coveralls": "1.0.1", "evert/phpdoc-md" : "~0.1.1", From 658447391035382d9eb3bc1b3405af41c82603c3 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sat, 6 Feb 2021 23:26:50 +0100 Subject: [PATCH 23/53] Update .travis.yml --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ea1420889..46c8e8c90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,8 @@ jobs: dist: xenial - php: 7.4 dist: xenial - - php: 8.0 - dist: focal +# - php: 8.0 note: not working, since php8 phpunit requires rewrite which is incomatible with php 5.* +# dist: focal before_script: - phpenv config-add test/resources/php.ini From 5c455ec208538d97538484b0e40ab50b2380f73d Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 12:25:00 +0100 Subject: [PATCH 24/53] test polyfill --- composer.json | 5 +++-- test/actions/Test_Actions.php | 2 +- test/client/Test_Client.php | 2 +- test/events/Test_Events.php | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 8b95ef682..62cf98db0 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "psr/log": ">= 1.0.0" }, "require-dev": { - "phpunit/phpunit": "4.*", + "phpunit/phpunit": "4.8.36", "monolog/monolog": "1.*", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/phpdocumentor": "2.*", @@ -33,6 +33,7 @@ "evert/phpdoc-md" : "~0.1.1", "codeclimate/php-test-reporter": "dev-master", "sebastian/phpcpd": "*", - "marcelog/pagi": "2.*" + "marcelog/pagi": "2.*", + "yoast/phpunit-polyfills": "^0.2.0" } } diff --git a/test/actions/Test_Actions.php b/test/actions/Test_Actions.php index 28f9138df..103fd5083 100644 --- a/test/actions/Test_Actions.php +++ b/test/actions/Test_Actions.php @@ -41,7 +41,7 @@ * @license http://marcelog.github.com/ Apache License 2.0 * @link http://marcelog.github.com/ */ -class Test_Actions extends \PHPUnit_Framework_TestCase +class Test_Actions extends \PHPUnit\Framework\TestCase { private $_properties = array(); diff --git a/test/client/Test_Client.php b/test/client/Test_Client.php index feec27b9f..ed90990a5 100644 --- a/test/client/Test_Client.php +++ b/test/client/Test_Client.php @@ -189,7 +189,7 @@ function setFgetsMock(array $readValues, $writeValues) * @license http://marcelog.github.com/ Apache License 2.0 * @link http://marcelog.github.com/ */ -class Test_Client extends \PHPUnit_Framework_TestCase +class Test_Client extends \PHPUnit\Framework\TestCase { private $_properties = array(); diff --git a/test/events/Test_Events.php b/test/events/Test_Events.php index 580fccd13..9c2e95936 100644 --- a/test/events/Test_Events.php +++ b/test/events/Test_Events.php @@ -40,7 +40,7 @@ * @license http://marcelog.github.com/ Apache License 2.0 * @link http://marcelog.github.com/ */ -class Test_Events extends \PHPUnit_Framework_TestCase +class Test_Events extends \PHPUnit\Framework\TestCase { private $_properties = array(); From a124185ac07a32dd5d61144dcb007faebe1d40e2 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 12:41:12 +0100 Subject: [PATCH 25/53] travis reenable php8 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 46c8e8c90..ea1420889 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,8 @@ jobs: dist: xenial - php: 7.4 dist: xenial -# - php: 8.0 note: not working, since php8 phpunit requires rewrite which is incomatible with php 5.* -# dist: focal + - php: 8.0 + dist: focal before_script: - phpenv config-add test/resources/php.ini From 4a630e7c19a09115c5f06b0fe8b95aef5b64e56f Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 12:51:30 +0100 Subject: [PATCH 26/53] test polyfill --- composer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 312d32500..d3cf36378 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "require-dev": { "phpunit/phpunit": "4.8.36", "monolog/monolog": "1.*", - "squizlabs/php_codesniffer": "2.* || 3.*", + "squizlabs/php_codesniffer": "2.*|3.*", "phpdocumentor/phpdocumentor": "2.*", "phing/phing": "2.16.3", "phpmd/phpmd": "2.*", @@ -34,6 +34,7 @@ "codeclimate/php-test-reporter": "dev-master", "sebastian/phpcpd": "2.0.4", "marcelog/pagi": "2.*", - "yoast/phpunit-polyfills": "^0.2.0" + "yoast/phpunit-polyfills": "^0.2.0", + "symfony/polyfill": "^1.22" } } From 9e7fd4f51b3b5236c6e2063ba5bc500585ea1a0a Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:12:12 +0100 Subject: [PATCH 27/53] test --- .travis.yml | 1 + composer.json | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ea1420889..d8c28234a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs + - if [[ ${TRAVIS_PHP_VERSION:0:3} >= "8.0" ]]; then composer require phpunit/phpunit:9.5.2; fi script: - vendor/bin/phing travis diff --git a/composer.json b/composer.json index d3cf36378..411dbf1dd 100644 --- a/composer.json +++ b/composer.json @@ -33,8 +33,6 @@ "evert/phpdoc-md" : "~0.1.1", "codeclimate/php-test-reporter": "dev-master", "sebastian/phpcpd": "2.0.4", - "marcelog/pagi": "2.*", - "yoast/phpunit-polyfills": "^0.2.0", - "symfony/polyfill": "^1.22" + "marcelog/pagi": "2.*" } } From 6a34a188b620f27bf861b18e9140aa8627196791 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:18:57 +0100 Subject: [PATCH 28/53] test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d8c28234a..ef8d18450 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:3} >= "8.0" ]]; then composer require phpunit/phpunit:9.5.2; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.5.2; fi script: - vendor/bin/phing travis From ae6dfd649d8f529fe501069a076cd0c659efbd1b Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:24:50 +0100 Subject: [PATCH 29/53] test --- .travis.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef8d18450..c6a4278ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,16 +2,16 @@ language: php jobs: include: - - php: 5.4 - dist: trusty - - php: 5.5 - dist: trusty - - php: 5.6 - dist: xenial - - php: 7.0 - dist: xenial - - php: 7.1 - dist: xenial +# - php: 5.4 +# dist: trusty +# - php: 5.5 +# dist: trusty +# - php: 5.6 +# dist: xenial +# - php: 7.0 +# dist: xenial +# - php: 7.1 +# dist: xenial - php: 7.2 dist: xenial - php: 7.3 @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.5.2; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.* --ignore-platform-reqs; fi script: - vendor/bin/phing travis From 87b8595a5bb1b87b7b73967fc5c77f190675eb04 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:29:40 +0100 Subject: [PATCH 30/53] test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c6a4278ab..3d8180d7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.* --ignore-platform-reqs; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.* --ignore-platform-reqs --with-all-dependencies; fi script: - vendor/bin/phing travis From e4759b86aeef9ced5a62e6053c398aaf33cef15b Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:35:19 +0100 Subject: [PATCH 31/53] test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3d8180d7b..26eca93d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.* --ignore-platform-reqs --with-all-dependencies; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.* sebastian/phpcpd:6.* --ignore-platform-reqs --with-all-dependencies; fi script: - vendor/bin/phing travis From 7b46a2ac976039ddbbff35477733ec7cb03699b6 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:44:20 +0100 Subject: [PATCH 32/53] test --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 26eca93d4..60f4f6515 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,8 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.* sebastian/phpcpd:6.* --ignore-platform-reqs --with-all-dependencies; fi +#disable cpd for now, as newer version fails with duplicated + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi script: - vendor/bin/phing travis From 6111e1e3e787fe1ae06adad3aed8a8ec574597d5 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:48:16 +0100 Subject: [PATCH 33/53] test --- .travis.yml | 16 ++++++++-------- test/client/Test_Client.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 60f4f6515..87659e74f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,20 +2,20 @@ language: php jobs: include: -# - php: 5.4 -# dist: trusty + - php: 5.4 + dist: trusty # - php: 5.5 # dist: trusty # - php: 5.6 # dist: xenial -# - php: 7.0 -# dist: xenial + - php: 7.0 + dist: xenial # - php: 7.1 # dist: xenial - - php: 7.2 - dist: xenial - - php: 7.3 - dist: xenial +# - php: 7.2 +# dist: xenial +# - php: 7.3 +# dist: xenial - php: 7.4 dist: xenial - php: 8.0 diff --git a/test/client/Test_Client.php b/test/client/Test_Client.php index ed90990a5..fc21b0bf5 100644 --- a/test/client/Test_Client.php +++ b/test/client/Test_Client.php @@ -193,7 +193,7 @@ class Test_Client extends \PHPUnit\Framework\TestCase { private $_properties = array(); - public function setUp() + public function setUp(): void { $this->_properties = array(); } From 0ca694a642debdbb6ec982f1de830a41f61e0637 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:51:27 +0100 Subject: [PATCH 34/53] test --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 87659e74f..0a96b3cd9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:9.* sebastian/phpcpd:6.* --ignore-platform-reqs --with-all-dependencies; fi -#disable cpd for now, as newer version fails with duplicated + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:7.* sebastian/phpcpd:5.* --ignore-platform-reqs --with-all-dependencies; fi +#disable cpd for now, as newer version fails with duplicated code - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi script: From 403e2bde0953de4d5a6e75c207aa4736ce9046ae Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:51:56 +0100 Subject: [PATCH 35/53] test --- test/client/Test_Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/client/Test_Client.php b/test/client/Test_Client.php index fc21b0bf5..ed90990a5 100644 --- a/test/client/Test_Client.php +++ b/test/client/Test_Client.php @@ -193,7 +193,7 @@ class Test_Client extends \PHPUnit\Framework\TestCase { private $_properties = array(); - public function setUp(): void + public function setUp() { $this->_properties = array(); } From 40f85a94523a948e946ca3ec4ea95cdf2ec4a7a9 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:55:57 +0100 Subject: [PATCH 36/53] test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0a96b3cd9..a92324cd3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:7.* sebastian/phpcpd:5.* --ignore-platform-reqs --with-all-dependencies; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:7.* sebastian/phpcpd:6.* --ignore-platform-reqs --with-all-dependencies; fi #disable cpd for now, as newer version fails with duplicated code - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi From 6963e85ea00e2f232ac827794e49f0ca5187d019 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 13:59:18 +0100 Subject: [PATCH 37/53] test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a92324cd3..8a93180b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:7.* sebastian/phpcpd:6.* --ignore-platform-reqs --with-all-dependencies; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:7.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies; fi #disable cpd for now, as newer version fails with duplicated code - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi From 64bdbe50e6a8993fb53dcc719cc93e4e3f3b6e4c Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Sun, 7 Feb 2021 14:02:19 +0100 Subject: [PATCH 38/53] test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8a93180b2..04fd0aa59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:7.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies; fi #disable cpd for now, as newer version fails with duplicated code - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi From 022f078036efffaa5052c8ce3d0e1a2f1a7c3905 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Mon, 8 Feb 2021 10:04:26 +0100 Subject: [PATCH 39/53] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 04fd0aa59..a559e2509 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,7 @@ install: - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies; fi #disable cpd for now, as newer version fails with duplicated code - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/function setUp()/function setUp() : void/g' test/*/*.php; fi script: - vendor/bin/phing travis From 9a27ebe51940051b65655b1e0768d350fe9799e8 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Mon, 8 Feb 2021 20:17:46 +0100 Subject: [PATCH 40/53] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a559e2509..c8c9878cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ install: - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies; fi #disable cpd for now, as newer version fails with duplicated code - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/function setUp()/function setUp() : void/g' test/*/*.php; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/function setUp\(\)/function setUp\(\) \: void/g' test/*/*.php; fi script: - vendor/bin/phing travis From 494760126c531d00f91df58023920277003fb074 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Mon, 8 Feb 2021 20:22:11 +0100 Subject: [PATCH 41/53] Update .travis.yml --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c8c9878cc..438028b47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,10 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies; fi -#disable cpd for now, as newer version fails with duplicated code - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/, cpd//g' build.xml; fi - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sed -i 's/function setUp\(\)/function setUp\(\) \: void/g' test/*/*.php; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sh compatibility-php8.sh; fi script: - vendor/bin/phing travis From 477efea2ae239402dc879b33d19c6a0711b52100 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Mon, 8 Feb 2021 20:24:03 +0100 Subject: [PATCH 42/53] Create compatibility-php8.sh --- compatibility-php8.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 compatibility-php8.sh diff --git a/compatibility-php8.sh b/compatibility-php8.sh new file mode 100644 index 000000000..9b7e36e7a --- /dev/null +++ b/compatibility-php8.sh @@ -0,0 +1,7 @@ + +#!/bin/sh + +composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies +# disable cpd for now, as newer version fails with duplicated code +sed -i 's/, cpd//g' build.xml +sed -i 's/function setUp()/function setUp() : void/g' test/*/*.php From be057ada03663b05d0498c06b81b6b04bcba6a54 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Mon, 8 Feb 2021 20:30:14 +0100 Subject: [PATCH 43/53] Update compatibility-php8.sh --- compatibility-php8.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/compatibility-php8.sh b/compatibility-php8.sh index 9b7e36e7a..0197fbcf0 100644 --- a/compatibility-php8.sh +++ b/compatibility-php8.sh @@ -5,3 +5,4 @@ composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs - # disable cpd for now, as newer version fails with duplicated code sed -i 's/, cpd//g' build.xml sed -i 's/function setUp()/function setUp() : void/g' test/*/*.php +sed -i 's/mapTestClassNameToCoveredClassName="false"//g' test/resources/phpunit.xml From 5e2147b01e356bfd02efcfc2157536aec12b7b1d Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Mon, 8 Feb 2021 20:39:01 +0100 Subject: [PATCH 44/53] Update compatibility-php8.sh --- compatibility-php8.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/compatibility-php8.sh b/compatibility-php8.sh index 0197fbcf0..b45916a79 100644 --- a/compatibility-php8.sh +++ b/compatibility-php8.sh @@ -6,3 +6,4 @@ composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs - sed -i 's/, cpd//g' build.xml sed -i 's/function setUp()/function setUp() : void/g' test/*/*.php sed -i 's/mapTestClassNameToCoveredClassName="false"//g' test/resources/phpunit.xml +sed -i 's/stopOnRisky="true"//g' test/resources/phpunit.xml From 2e3fd1ad111c3164fdbbe9f2f72d62215684cbe4 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Mon, 8 Feb 2021 21:00:52 +0100 Subject: [PATCH 45/53] Update compatibility-php8.sh --- compatibility-php8.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compatibility-php8.sh b/compatibility-php8.sh index b45916a79..235aee8de 100644 --- a/compatibility-php8.sh +++ b/compatibility-php8.sh @@ -1,7 +1,7 @@ #!/bin/sh -composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies +composer require phpunit/phpunit:9.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies # disable cpd for now, as newer version fails with duplicated code sed -i 's/, cpd//g' build.xml sed -i 's/function setUp()/function setUp() : void/g' test/*/*.php From 0d2fbdae105c9a6884d9c60daa2e356f165bbfc0 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 09:00:17 +0100 Subject: [PATCH 46/53] test --- README.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0be4e82b9..6d419da0f 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ # Introduction -PAMI means PHP Asterisk Manager Interface. As its name suggests its just a +PAMI means PHP Asterisk Manager Interface. As its name suggests its a set of php classes that will let you issue commands to an ami and/or receive events, using an observer-listener pattern. -The idea behind this, is to easily implement operator consoles, monitors, etc. -either via SOA or ajax. +The idea behind this, is to easily implement operator consoles, monitors, +real time telephone applications, etc. either via SOA or ajax. A port for nodejs is available at: http://marcelog.github.com/Nami A port for erlang is available at: https://github.com/marcelog/erlami @@ -28,17 +28,25 @@ A port for erlang is available at: https://github.com/marcelog/erlami # PHP Versions +## PHP 5 Note: PAMI Requires PHP 5.3+. PHP versions 5.3.9 and 5.3.10 WILL NOT WORK due to a bug introduced in stream_get_line() in 5.3.9. Please use 5.3.11+ or up to 5.3.8 (see README.PHP-5.3.9-and-5.3.10). +Also running on 5.4 and 5.5. + +## PHP 7 + +PHP Versions 7.0, 7.1, 7.2, 7.3 and 7.4 are also confirmed working with +the latest version. + +## PHP 8 +This version is also supported. # Installing Add this library to your [Composer](https://packagist.org/) configuration. In composer.json: -```json - "require": { - "marcelog/pami": "2.*" - } +```sh +composer require marcelog/pami ``` # QuickStart @@ -97,7 +105,8 @@ Also, you might want to look at this article: http://marcelog.github.com/article For an example of using asynchronous AGI with PAMI, see docs/examples/asyncagi -The [march edition](http://sdjournal.org/a-practical-introduction-to-functional-programming-with-php-sdj-issue-released/) of [Software Developer Journal](http://sdjournal.org/) features a complete article about writing telephony applications with PAMI and PAGI. +The [2014 march edition](http://web.archive.org/web/20140625083045/http://sdjournal.org/a-practical-introduction-to-functional-programming-with-php-sdj-issue-released/) +of [Software Developer Journal](http://sdjournal.org/) features a complete article about writing telephony applications with PAMI and PAGI. # Currently Supported Events From 1aa3122370d956614852d39b23cfcfdab06c3092 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 09:07:35 +0100 Subject: [PATCH 47/53] test --- .travis.yml | 22 +++++++++---------- .../resources/compatibility-php8.sh | 0 2 files changed, 11 insertions(+), 11 deletions(-) rename compatibility-php8.sh => test/resources/compatibility-php8.sh (100%) diff --git a/.travis.yml b/.travis.yml index 438028b47..2f30e1641 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,18 +4,18 @@ jobs: include: - php: 5.4 dist: trusty -# - php: 5.5 -# dist: trusty -# - php: 5.6 -# dist: xenial + - php: 5.5 + dist: trusty + - php: 5.6 + dist: xenial - php: 7.0 dist: xenial -# - php: 7.1 -# dist: xenial -# - php: 7.2 -# dist: xenial -# - php: 7.3 -# dist: xenial + - php: 7.1 + dist: xenial + - php: 7.2 + dist: xenial + - php: 7.3 + dist: xenial - php: 7.4 dist: xenial - php: 8.0 @@ -26,7 +26,7 @@ before_script: install: - composer install || composer install --ignore-platform-reqs - - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sh compatibility-php8.sh; fi + - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then sh test/resources/compatibility-php8.sh; fi script: - vendor/bin/phing travis diff --git a/compatibility-php8.sh b/test/resources/compatibility-php8.sh similarity index 100% rename from compatibility-php8.sh rename to test/resources/compatibility-php8.sh From d87c54a4a90e5f9b70169ec800cc4d4d94394210 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 09:10:34 +0100 Subject: [PATCH 48/53] Update compatibility-php8.sh --- test/resources/compatibility-php8.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/resources/compatibility-php8.sh b/test/resources/compatibility-php8.sh index 235aee8de..aec0de420 100644 --- a/test/resources/compatibility-php8.sh +++ b/test/resources/compatibility-php8.sh @@ -1,9 +1,18 @@ #!/bin/sh +# require new version of phpunit and phpcpd, as the old ones are incompatible with php8 +# (note: cannot generally require the new ones as these are not compatible with php 5) composer require phpunit/phpunit:9.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies + # disable cpd for now, as newer version fails with duplicated code sed -i 's/, cpd//g' build.xml + +# phpunit compatiblity of new versions (requires return type declaration) sed -i 's/function setUp()/function setUp() : void/g' test/*/*.php + +# phpunit xml compatiblity, delete deprecated flag sed -i 's/mapTestClassNameToCoveredClassName="false"//g' test/resources/phpunit.xml + +# phpunit disable stop on risky, as risky test functions are being used sed -i 's/stopOnRisky="true"//g' test/resources/phpunit.xml From ac044b6b760c053d16888e4279eeb4797bce5abf Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 09:44:00 +0100 Subject: [PATCH 49/53] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 6d419da0f..dbabe8384 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ to 5.3.8 (see README.PHP-5.3.9-and-5.3.10). Also running on 5.4 and 5.5. ## PHP 7 - PHP Versions 7.0, 7.1, 7.2, 7.3 and 7.4 are also confirmed working with the latest version. From 28b584ea8eca429b55809eab90c741fb5143b56b Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 14:08:35 +0100 Subject: [PATCH 50/53] Update Test_Client.php --- test/client/Test_Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/client/Test_Client.php b/test/client/Test_Client.php index ed90990a5..abeb28fdf 100644 --- a/test/client/Test_Client.php +++ b/test/client/Test_Client.php @@ -256,7 +256,7 @@ public function can_detect_other_peer() 'connect_timeout' => 10, 'read_timeout' => 10 ); - $read = array('Whatever'); + $read = array('Asterisk'); $write = array(); setFgetsMock($read, $write); $client = new \PAMI\Client\Impl\ClientImpl($options); From 87d2c2945c11c882f7c3850545b127f88fe0e5cc Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 14:20:06 +0100 Subject: [PATCH 51/53] Update Test_Client.php --- test/client/Test_Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/client/Test_Client.php b/test/client/Test_Client.php index abeb28fdf..d1b61a181 100644 --- a/test/client/Test_Client.php +++ b/test/client/Test_Client.php @@ -256,7 +256,7 @@ public function can_detect_other_peer() 'connect_timeout' => 10, 'read_timeout' => 10 ); - $read = array('Asterisk'); + $read = array("Asterisk Call Manager/1.1\n"); $write = array(); setFgetsMock($read, $write); $client = new \PAMI\Client\Impl\ClientImpl($options); From 0865756d461e5fbd4a0ebff782f02e1e584d8767 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 14:55:49 +0100 Subject: [PATCH 52/53] Update compatibility-php8.sh --- test/resources/compatibility-php8.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/resources/compatibility-php8.sh b/test/resources/compatibility-php8.sh index aec0de420..e7d1e5fb2 100644 --- a/test/resources/compatibility-php8.sh +++ b/test/resources/compatibility-php8.sh @@ -3,7 +3,7 @@ # require new version of phpunit and phpcpd, as the old ones are incompatible with php8 # (note: cannot generally require the new ones as these are not compatible with php 5) -composer require phpunit/phpunit:9.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies +composer require phpunit/phpunit:8.* sebastian/phpcpd:* --ignore-platform-reqs --with-all-dependencies # disable cpd for now, as newer version fails with duplicated code sed -i 's/, cpd//g' build.xml From c305c25472e2208f7c9755beb44944e12071a288 Mon Sep 17 00:00:00 2001 From: Sebastian Jennen Date: Wed, 10 Feb 2021 14:58:04 +0100 Subject: [PATCH 53/53] Update Test_Client.php --- test/client/Test_Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/client/Test_Client.php b/test/client/Test_Client.php index d1b61a181..f0bd9ca83 100644 --- a/test/client/Test_Client.php +++ b/test/client/Test_Client.php @@ -256,7 +256,7 @@ public function can_detect_other_peer() 'connect_timeout' => 10, 'read_timeout' => 10 ); - $read = array("Asterisk Call Manager/1.1\n"); + $read = array("Whatever"); $write = array(); setFgetsMock($read, $write); $client = new \PAMI\Client\Impl\ClientImpl($options);