Code Duplication    Length = 8-8 lines in 2 locations

src/Tests/_archive/test_document.php 1 location

@@ 12-19 (lines=8) @@
9
print $doc->find('li:first')->html('foo <p>bar</p> foo <b><i>foo</i</b>')->html();
10
die();
11
$testResult = 10;
12
if ($doc->script('example', 'p')->length == $testResult)
13
	print "Test '$testName' PASSED :)";
14
else {
15
	print "Test '$testName' <strong>FAILED</strong> !!! ";
16
	print "<pre>";
17
	var_dump($doc->whois());
18
	print "</pre>\n";
19
}
20
print "\n";

src/Tests/_archive/test_scripts.php 1 location

@@ 11-18 (lines=8) @@
8
$testName = 'Scripts/example';
9
$doc = PhpQuery::newDocumentFile('test.html');
10
$testResult = 10;
11
if ($doc->script('example', 'p')->length == $testResult)
12
	print "Test '$testName' PASSED :)";
13
else {
14
	print "Test '$testName' <strong>FAILED</strong> !!! ";
15
	print "<pre>";
16
	var_dump($doc->whois());
17
	print "</pre>\n";
18
}
19
print "\n";
20
21