From 0e4705a9f3efad849b825a534258224688b04d32 Mon Sep 17 00:00:00 2001 From: Jacob Bennett Date: Wed, 25 Mar 2020 20:49:58 -0500 Subject: [PATCH] update dependencies for Laravel 7 (#42) --- .phpunit.result.cache | 1 + .travis.yml | 3 +-- composer.json | 4 ++-- phpunit.xml.dist | 2 +- tests/AddHttp2ServerPushTest.php | 5 +++-- 5 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .phpunit.result.cache diff --git a/.phpunit.result.cache b/.phpunit.result.cache new file mode 100644 index 0000000..516b275 --- /dev/null +++ b/.phpunit.result.cache @@ -0,0 +1 @@ +C:37:"PHPUnit\Runner\DefaultTestResultCache":1559:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:13:{s:87:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_not_exceed_size_limit";d:0.038;s:88:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_not_add_excluded_asset";d:0.001;s:114:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_not_modify_a_response_with_no_server_push_assets";d:0.001;s:98:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_return_a_css_link_header_for_css";d:0.001;s:96:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_return_a_js_link_header_for_js";d:0;s:104:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_return_an_image_link_header_for_images";d:0.001;s:109:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_return_an_image_link_header_for_svg_objects";d:0.001;s:96:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_returns_well_formatted_link_headers";d:0.001;s:113:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_return_correct_push_headers_for_multiple_assets";d:0.001;s:104:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_not_return_a_push_header_for_inline_js";d:0.001;s:100:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_not_return_a_push_header_for_icons";d:0.001;s:93:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_return_limit_count_of_links";d:0.001;s:101:"JacobBennett\Http2ServerPush\Test\AddHttp2ServerPushTest::it_will_append_to_header_if_already_present";d:0.001;}}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 63f45f4..c7789b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,9 @@ language: php php: - - 7.0 - - 7.1 - 7.2 - 7.3 + - 7.4 env: matrix: diff --git a/composer.json b/composer.json index 1287017..bd882e0 100644 --- a/composer.json +++ b/composer.json @@ -17,14 +17,14 @@ } ], "require": { - "php" : "^7.0", + "php" : "^7.2", "illuminate/support": "~6.0|~7.0", "illuminate/http": "~6.0|~7.0", "symfony/dom-crawler": "^2.7|^3.0|^4.0|^5.0", "symfony/css-selector": "^2.7|^3.0|^4.0|^5.0" }, "require-dev": { - "phpunit/phpunit" : "^4.0|^5.0", + "phpunit/phpunit": "^8.5", "scrutinizer/ocular": "^1.1" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ef10f74..1f0d1c0 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -22,7 +22,7 @@ - + diff --git a/tests/AddHttp2ServerPushTest.php b/tests/AddHttp2ServerPushTest.php index 1c78907..2ac18da 100644 --- a/tests/AddHttp2ServerPushTest.php +++ b/tests/AddHttp2ServerPushTest.php @@ -6,11 +6,12 @@ use Illuminate\Support\Str; use JacobBennett\Http2ServerPush\Middleware\AddHttp2ServerPush; use Symfony\Component\HttpFoundation\Response; +use PHPUnit\Framework\TestCase; -class AddHttp2ServerPushTest extends \PHPUnit_Framework_TestCase +class AddHttp2ServerPushTest extends TestCase { - public function setUp() + public function setUp() : void { $this->middleware = new AddHttp2ServerPush(); }