From 09ad3953df7fb3d8da8a74c47e5c0a6ac5bca7d1 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 31 May 2019 12:32:08 +0200 Subject: [PATCH 1/3] Added PHP versions to CI --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 87bbb1e6..de890615 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 + - 7.3 - nightly - hhvm From 2bd42c557cd691cc432284488b083878cc081031 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 31 May 2019 12:40:07 +0200 Subject: [PATCH 2/3] Added option to PsrResponseCommandTest --- tests/PsrResponseCommandTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/PsrResponseCommandTest.php b/tests/PsrResponseCommandTest.php index 230d266f..84cbdfb5 100644 --- a/tests/PsrResponseCommandTest.php +++ b/tests/PsrResponseCommandTest.php @@ -45,10 +45,10 @@ class PsrResponseCommandTest extends TestCase $this->assertTrue($output->hasHeader('Content-Type')); $this->assertTrue($output->hasHeader('Content-Length')); - $this->assertEquals( - "application/xml", - $output->getHeaderLine('Content-Type') - ); + $this->assertTrue(in_array($output->getHeaderLine('Content-Type'), [ + 'application/xml', + 'text/xml', + ])) $this->assertEquals( strlen($encodedContent), From 5d59c524da8a2d951d3b31a551ebbdb55db5326a Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 31 May 2019 12:44:09 +0200 Subject: [PATCH 3/3] Bugfix --- tests/PsrResponseCommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PsrResponseCommandTest.php b/tests/PsrResponseCommandTest.php index 84cbdfb5..f7753f04 100644 --- a/tests/PsrResponseCommandTest.php +++ b/tests/PsrResponseCommandTest.php @@ -48,7 +48,7 @@ class PsrResponseCommandTest extends TestCase $this->assertTrue(in_array($output->getHeaderLine('Content-Type'), [ 'application/xml', 'text/xml', - ])) + ])); $this->assertEquals( strlen($encodedContent),