Code Duplication    Length = 6-6 lines in 3 locations

src/Tests/_archive/test_charset.php 3 locations

@@ 23-28 (lines=6) @@
20
		->find('p:first')
21
			->_empty()
22
			->append('é');
23
if (trim($result->html()) == 'é')
24
	print "Test '{$testName}' passed :)<br />\n";
25
else {
26
	print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
27
	print $result->html();
28
}
29
print "\n";
30
31
$testName = 'DOMElement node HTML entite append';
@@ 37-42 (lines=6) @@
34
		->find('p:first')
35
			->empty()
36
			->append('<span>&eacute;</span>');
37
if (trim($result->html()) == '<span>é</span>')
38
	print "Test '{$testName}' passed :)<br />\n";
39
else {
40
	print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
41
	print $result->html();
42
}
43
print "\n";
44
45
$testName = 'Append and move';
@@ 68-73 (lines=6) @@
65
$result = PhpQuery::newDocumentFile('test.html')
66
	->find('li:first')
67
		->attr('test', 'foo &eacute; żźć bar');
68
if (trim($result->attr('test')) == 'foo &eacute; żźć bar')
69
	print "Test '{$testName}' passed :)<br />\n";
70
else {
71
	print "Test '{$testName}' <strong>FAILED</strong> !!!<br />\n";
72
	print $result->attr('test');
73
}
74
print "\n";
75
76