.
// }}}
namespace App\Tests\Util;
use App\Util\HTML;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class HTMLTest extends WebTestCase
{
public function testHTML()
{
static::assertSame('', HTML::html(''));
static::assertSame("\n\n\n", HTML::html(['a' => '']));
static::assertSame("\n \n
\n\n", HTML::html(['a' => ['p' => '']]));
static::assertSame("\n \n foo\n
\n
\n\n", HTML::html(['a' => ['p' => 'foo', 'br' => 'empty']]));
}
}