Skip to content

Commit

Permalink
Revert "Only test exception message for libxml2 >= 2.9.13 (testing ag…
Browse files Browse the repository at this point in the history
…ainst error messages we do not have control over is a bad idea)"

This reverts commit d82d27a.
  • Loading branch information
sebastianbergmann authored and theseer committed Mar 24, 2022
1 parent 9ebbc3c commit 2fecb91
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/TempladoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ public function testCanBeConstructedFromString(): void {
*/
public function testTryingToParseInvalidMarkupStringThrowsException(): void {
$this->expectException(TempladoException::class);

if (version_compare('2.9.13', LIBXML_DOTTED_VERSION, '>=')) {
$this->expectExceptionMessage('Premature end of data in tag root line 1 (Line 1, Column 29)');
}
$this->expectExceptionMessage('Premature end of data in tag root line 1 (Line 1, Column 29)');

Templado::parseHtmlString('<?xml version="1.0" ?><root>');
}
Expand All @@ -37,10 +34,7 @@ public function testTryingToParseInvalidMarkupStringThrowsException(): void {
*/
public function testTryingToLoadBrokenFileThrowsException(): void {
$this->expectException(TempladoException::class);

if (version_compare('2.9.13', LIBXML_DOTTED_VERSION, '>=')) {
$this->expectExceptionMessage('Premature end of data in tag start line 2 (Line 4, Column 1)');
}
$this->expectExceptionMessage('Premature end of data in tag start line 2 (Line 4, Column 1)');

Templado::loadHtmlFile(new FileName(__DIR__ . '/_data/broken.txt'));
}
Expand Down

0 comments on commit 2fecb91

Please sign in to comment.