mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Simple PHPUnit tests
This commit is contained in:
parent
72bf212f67
commit
2ed88f5d27
9 changed files with 85 additions and 7 deletions
21
tests/MailSo/Base/HtmlUtilsTest.php
Normal file
21
tests/MailSo/Base/HtmlUtilsTest.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
class HtmlUtilsTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue