public function testCreateSpanStartWithPadding()
 {
     $this->splitPosition->shouldReceive('getLevel')->andReturn(-1);
     $result = $this->highlightRenderer->createSpanStart($this->splitPosition);
     assertThat($result, is("<span class=\"hi-match\" title=\"<infoText>\">"));
 }
Exemplo n.º 2
0
 /**
  * @param SplitPosition $entry
  * @return string
  */
 protected function startSpan(SplitPosition $entry)
 {
     $anchorText = $this->checkForAnchor($entry) ? "<a id=\"highlight\"" . ($this->insertBacklink ? " href=\"#top\">&nbsp;&#8593;&nbsp;" : ">") . "</a>" : "";
     return $anchorText . $this->highlightRenderer->createSpanStart($entry);
 }