snappymail/tests/MailSo/Base/HtmlUtilsTest.php

24 lines
558 B
PHP
Raw Normal View History

2016-05-21 03:02:39 +08:00
<?php
2016-05-21 03:55:29 +08:00
namespace MailSoTests;
class HtmlUtilsTest extends \PHPUnit_Framework_TestCase
2016-05-21 03:02:39 +08:00
{
public function testCommon()
{
$this->assertTrue(true);
$this->assertTrue(class_exists('\\RainLoop\\Api'));
$this->assertTrue(class_exists('\\MailSo\\Base\\HtmlUtils'));
}
public function testClearHtml()
{
$i = 0;
while (++$i < 3)
{
$this->assertEquals(file_get_contents(TEST_DATA_FOLDER."/html/{$i}-ok.html"),
\MailSo\Base\HtmlUtils::ClearHtmlSimple(file_get_contents(TEST_DATA_FOLDER."/html/{$i}.html"), false, false, false));
}
}
}