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