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