public function testCreateSpanEndWithWrappeingHtmlElement()
 {
     $this->highlight->shouldReceive('getHtmlElement')->andReturn($this->htmlElement);
     $result = $this->highlightRenderer->createSpanEnd($this->splitPosition);
     assertThat($result, is("</element></span>"));
 }
Esempio n. 2
0
 /**
  * @param \Fossology\Lib\View\PagedResult $result
  */
 public function closeOpenElements(PagedResult $result)
 {
     foreach ($this->elementStack as $splitPosition) {
         $result->appendMetaText($this->highlightRenderer->createSpanEnd($splitPosition));
     }
 }