foo';
$html = new HtmlString('
foo
');
$this->assertEquals($str, $html->toHtml());
}
public function testToString()
{
$str = 'foo
';
$html = new HtmlString('foo
');
$this->assertEquals($str, (string) $html);
}
public function testIsEmpty()
{
$this->assertTrue((new HtmlString(''))->isEmpty());
}
public function testIsNotEmpty()
{
$this->assertTrue((new HtmlString('foo'))->isNotEmpty());
}
}