Updates and fixes from phan/phpstan runs

This commit is contained in:
Clemens Schwaighofer
2023-06-28 15:29:29 +09:00
parent 1754ecf2ee
commit 53e267ce24
7 changed files with 61 additions and 56 deletions

View File

@@ -483,7 +483,8 @@ final class CoreLibsTemplateHtmlBuilderElementTest extends TestCase
// if we set invalid tag
$el = new Element('div');
$this->expectException(HtmlBuilderExcpetion::class);
$this->expectExceptionMessage("Invalid or empty tag");
$this->expectExceptionMessageMatches("/^Invalid or empty tag: /");
$this->expectExceptionMessage("Invalid or empty tag: 123123");
$el->setTag('123123');
$this->assertTrue(
Error::hasError(),