Code Duplication    Length = 7-7 lines in 2 locations

tests/model/HierarchyTest.php 2 locations

@@ 521-527 (lines=7) @@
518
	 * @param array $nodes Breadcrumb path as array
519
	 * @param String $message
520
	 */
521
	protected function assertTreeContains($html, $nodes, $message = null) {
522
		$parser = new CSSContentParser($html);
523
		$xpath = '/';
524
		foreach($nodes as $node) $xpath .= '/ul/li[@id="' . $node->ID . '"]';
525
		$match = $parser->getByXpath($xpath);
526
		self::assertThat((bool)$match, self::isTrue(), $message);
527
	}
528
529
	/**
530
	 * @param String $html  [description]
@@ 534-540 (lines=7) @@
531
	 * @param array $nodes Breadcrumb path as array
532
	 * @param String $message
533
	 */
534
	protected function assertTreeNotContains($html, $nodes, $message = null) {
535
		$parser = new CSSContentParser($html);
536
		$xpath = '/';
537
		foreach($nodes as $node) $xpath .= '/ul/li[@id="' . $node->ID . '"]';
538
		$match = $parser->getByXpath($xpath);
539
		self::assertThat((bool)$match, self::isFalse(), $message);
540
	}
541
542
	/**
543
	 * Get the HTML class attribute from a node in the sitetree