Code Duplication    Length = 6-7 lines in 3 locations

src/Tests/_archive/test_manipulation.php 3 locations

@@ 91-96 (lines=6) @@
88
$doc = PhpQuery::newDocument('<div><p/></div>');
89
$string = "La Thermo-sonde de cuisson vous permet de cuire à la perfection au four comme au bain-marie. Température: entre <b>0°C et 210°C</b>.";
90
$doc->find('p')->html($string);
91
if (pq('p')->length == 1)
92
	print "Test '{$testName}' PASSED :)";
93
else {
94
	print "Test '{$testName}' <strong>FAILED</strong> !!! ";
95
	print $doc->htmlOuter('htmlentities');
96
}
97
print "\n";
98
99
@@ 104-109 (lines=6) @@
101
$doc = PhpQuery::newDocument('<div><p/></div>');
102
$string = "<div>La Thermo-sonde de cuisson vous permet de cuire à la perfection au four comme au bain-marie. Température: entre <b>0°C et 210°C</b>.</div>";
103
$doc->find('p')->html($string);
104
if (pq('div')->length == 2) {
105
	print "Test '{$testName}' PASSED :)";
106
} else {
107
	print "Test '{$testName}' <strong>FAILED</strong> !!! ";
108
	print $doc->htmlOuter('htmlentities');
109
}
110
print "\n";
111
112
@@ 120-126 (lines=7) @@
117
<p>Éditorial de l\'institution Saint-Pierre.</p>
118
 Hors paragraphe.';
119
$doc->find('p')->html($string);
120
if (pq('img')->length == 1) {
121
	print "Test '{$testName}' PASSED :)";
122
	print $doc->htmlOuter();
123
} else {
124
	print "Test '{$testName}' <strong>FAILED</strong> !!! ";
125
	print $doc->htmlOuter('htmlentities');
126
}
127
print "\n";
128
129