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