diff --git a/.travis.yml b/.travis.yml index 87bbb1e67..de890615d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 + - 7.3 - nightly - hhvm diff --git a/tests/PsrResponseCommandTest.php b/tests/PsrResponseCommandTest.php index 230d266ff..f7753f04a 100644 --- a/tests/PsrResponseCommandTest.php +++ b/tests/PsrResponseCommandTest.php @@ -45,10 +45,10 @@ public function testResponseCreationAndHeaders() $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),