Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Use assertContains as assertStringContainsString is not available in …
Browse files Browse the repository at this point in the history
…the older version of PHPUnit
  • Loading branch information
sanmai committed Mar 12, 2019
1 parent 4004e2e commit 5ef3687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Deserialization/InvalidXMLTest.php
Expand Up @@ -51,7 +51,7 @@ public function test_error_contains_invalid_xml()
try {
$this->getSerializer()->deserialize('foo<bar>', Item::class, 'xml');
} catch (XmlErrorException $e) {
$this->assertStringContainsString('foo<bar>', $e->getMessage());
$this->assertContains('foo<bar>', $e->getMessage());
$this->assertInstanceOf(\LibXMLError::class, $e->getXmlError());
$this->assertSame(1, $e->getXmlError()->line);
$this->assertInstanceOf(\JMS\Serializer\Exception\XmlErrorException::class, $e->getPrevious());
Expand Down

0 comments on commit 5ef3687

Please sign in to comment.