From e9fb43f9c39a72f6c490decc6268654531d1ef17 Mon Sep 17 00:00:00 2001 From: Lewis Cowles Date: Thu, 7 Jul 2022 19:36:20 +0100 Subject: [PATCH 1/2] Fix & Future-proof CI --- .gitignore | 2 ++ composer.json | 7 +++++-- tests/bootstrap.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4f4acd3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +vendor/ +composer.lock \ No newline at end of file diff --git a/composer.json b/composer.json index 3d64e61..1c32ab7 100644 --- a/composer.json +++ b/composer.json @@ -16,11 +16,14 @@ } ], "require": { - "php": ">=5.3.0" + "php": ">=5.4" }, "autoload": { "files": [ "src/IndieWeb/link_rel_parser.php" ] + }, + "require-dev": { + "yoast/phpunit-polyfills": "^1.0" } -} \ No newline at end of file +} diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 69cbd1b..b122fd9 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,4 +1,4 @@ Date: Thu, 7 Jul 2022 19:39:38 +0100 Subject: [PATCH 2/2] Forward Compatibility for PHPUnit --- tests/BasicTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/BasicTest.php b/tests/BasicTest.php index 2b373c0..db71a0d 100644 --- a/tests/BasicTest.php +++ b/tests/BasicTest.php @@ -1,9 +1,8 @@ assertEquals($expected, $result);