Fix test assertions that did not verify the intended behavior

This commit is contained in:
Fabien Potencier
2026-06-04 12:36:48 +02:00
parent 4b2e651dd5
commit 89e8699a73
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -45,8 +45,8 @@ class TextTest extends NodeTestCase
*/
public function testIsBlank($blank)
{
$this->isTrue((new TextNode($blank, 1))->isBlank());
$this->isTrue((new TextNode(\chr(0xEF).\chr(0xBB).\chr(0xBF).$blank, 1))->isBlank());
$this->assertTrue((new TextNode($blank, 1))->isBlank());
$this->assertTrue((new TextNode(\chr(0xEF).\chr(0xBB).\chr(0xBF).$blank, 1))->isBlank());
}
public static function getIsBlankData()