VuFindHighlighterTest
extends TestCase
in package
VuFindHighlighter Test Class
Tags
Table of Contents
- $proxyUrl : ProxyUrl|MockObject
- Mock proxy object
- $vuFindHighlighter : VuFindHighlighter
- VuFind highlighter object
- getHighlightDataProvider() : array<string|int, array<string|int, mixed>>
- Data provider for testGetHighlight()
- setUp() : void
- Generic setup method
- tearDown() : void
- Generic teardown method
- testGetHighlight() : void
- Test the highlight method
Properties
$proxyUrl
Mock proxy object
protected
ProxyUrl|MockObject
$proxyUrl
$vuFindHighlighter
VuFind highlighter object
protected
VuFindHighlighter
$vuFindHighlighter
Methods
getHighlightDataProvider()
Data provider for testGetHighlight()
public
static getHighlightDataProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —setUp()
Generic setup method
public
setUp() : void
Return values
void —tearDown()
Generic teardown method
public
tearDown() : void
Return values
void —testGetHighlight()
Test the highlight method
public
testGetHighlight(string $url, string $expected) : void
Parameters
- $url : string
-
URL
- $expected : string
-
Expected result