From e25654ec3a2c80bfb0e837a55bc511a9cbba05c4 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 5 Feb 2020 09:42:00 +0100 Subject: [PATCH] fix test to avoid deprecation warning and ignore indirect deprecations --- .travis.yml | 1 + tests/Unit/ProxyClient/HttpDispatcherTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 20b5b41c..04a900c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ env: global: - VARNISH_VERSION=5.1 - SYMFONY_PHPUNIT_VERSION=8 + - SYMFONY_DEPRECATIONS_HELPER="max[self]=0" - DEPENDENCIES="toflar/psr6-symfony-http-cache-store:^2.2.0" matrix: diff --git a/tests/Unit/ProxyClient/HttpDispatcherTest.php b/tests/Unit/ProxyClient/HttpDispatcherTest.php index c90111a3..162de5e5 100644 --- a/tests/Unit/ProxyClient/HttpDispatcherTest.php +++ b/tests/Unit/ProxyClient/HttpDispatcherTest.php @@ -203,7 +203,7 @@ public function testSetBasePathWithPath() 'http://fos.lo/my/path', $this->httpClient ); - $request = $this->messageFactory->createRequest('PURGE', 'append'); + $request = $this->messageFactory->createRequest('PURGE', '/append'); $httpDispatcher->invalidate($request); $httpDispatcher->flush();