HtmlUtilsTest::testClearHtml()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
namespace MailSoTests;
4
5
class HtmlUtilsTest extends \PHPUnit_Framework_TestCase
6
{
7
	public function testCommon()
8
    {
9
		$this->assertTrue(true);
10
		$this->assertTrue(class_exists('\\RainLoop\\Api'));
11
		$this->assertTrue(class_exists('\\MailSo\\Base\\HtmlUtils'));
12
	}
13
14
	public function testClearHtml()
15
    {
16
		$i = 0;
17
		while (++$i < 3)
18
		{
19
			$this->assertEquals(file_get_contents(TEST_DATA_FOLDER."/html/{$i}-ok.html"),
20
				\MailSo\Base\HtmlUtils::ClearHtmlSimple(file_get_contents(TEST_DATA_FOLDER."/html/{$i}.html"), false, false, false));
21
		}
22
	}
23
}
24