VuFindTest
extends TestCase
in package
Uses
PathResolverTrait
XSLT helper tests.
Tags
Table of Contents
- isInvertedNameProvider() : array<string|int, mixed>
- DataProvider for testIsInvertedName().
- nameProvider() : array<string|int, mixed>
- DataProvider for name-related tests
- testExplode() : void
- Test the explode helper.
- testExtractBestDateOrRange() : void
- Test the extractBestDateOrRange helper.
- testExtractEarliestYear() : void
- Test the extractEarliestYear helper.
- testGetChangeTracker() : void
- Test the getChangeTracker helper.
- testGetConfig() : void
- Test the getConfig helper.
- testHarvestTextFile() : void
- Test the harvestTextFile helper.
- testImplode() : void
- Test the implode helper.
- testInvertName() : void
- Test the invertName helper.
- testInvertNames() : void
- Test the invertNames helper.
- testIsInvertedName() : void
- Test the isInvertedName helper.
- testMapString() : void
- Test the mapString helper.
- testRemoveTagAndReturnXMLasText() : void
- Test the removeTagAndReturnXMLasText helper.
- testStripArticles() : void
- Test the stripArticles helper.
- testStripBadChars() : void
- Test the stripBadChars helper.
- testTitleSortLower() : void
- Test the titleSortLower helper.
- testXmlAsText() : void
- Test the xmlAsText helper.
- titleSortLowerProvider() : array<string|int, mixed>
- Data provider for testTitleSortLower().
- addPathResolverToContainer() : void
- Add PathResolverFactory to a mock container
- getMockContainer() : MockContainer
- Support method -- set up a mock container for testing the class.
- getPathResolver() : PathResolver
- Get a config file path resolver
Methods
isInvertedNameProvider()
DataProvider for testIsInvertedName().
public
static isInvertedNameProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —nameProvider()
DataProvider for name-related tests
public
static nameProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —testExplode()
Test the explode helper.
public
testExplode() : void
Return values
void —testExtractBestDateOrRange()
Test the extractBestDateOrRange helper.
public
testExtractBestDateOrRange() : void
Return values
void —testExtractEarliestYear()
Test the extractEarliestYear helper.
public
testExtractEarliestYear() : void
Return values
void —testGetChangeTracker()
Test the getChangeTracker helper.
public
testGetChangeTracker() : void
Return values
void —testGetConfig()
Test the getConfig helper.
public
testGetConfig() : void
Return values
void —testHarvestTextFile()
Test the harvestTextFile helper.
public
testHarvestTextFile() : void
Return values
void —testImplode()
Test the implode helper.
public
testImplode() : void
Return values
void —testInvertName()
Test the invertName helper.
public
testInvertName(string $input, string $output) : void
Parameters
- $input : string
-
Input to test
- $output : string
-
Expected output of test
Tags
Return values
void —testInvertNames()
Test the invertNames helper.
public
testInvertNames() : void
Return values
void —testIsInvertedName()
Test the isInvertedName helper.
public
testIsInvertedName(string $input, bool $output) : void
Parameters
- $input : string
-
Input to test
- $output : bool
-
Expected output of test
Tags
Return values
void —testMapString()
Test the mapString helper.
public
testMapString() : void
Return values
void —testRemoveTagAndReturnXMLasText()
Test the removeTagAndReturnXMLasText helper.
public
testRemoveTagAndReturnXMLasText() : void
Return values
void —testStripArticles()
Test the stripArticles helper.
public
testStripArticles() : void
Return values
void —testStripBadChars()
Test the stripBadChars helper.
public
testStripBadChars() : void
Return values
void —testTitleSortLower()
Test the titleSortLower helper.
public
testTitleSortLower(string $input, string $expected) : void
Parameters
- $input : string
-
Input to test
- $expected : string
-
Expected output of test
Tags
Return values
void —testXmlAsText()
Test the xmlAsText helper.
public
testXmlAsText() : void
Return values
void —titleSortLowerProvider()
Data provider for testTitleSortLower().
public
static titleSortLowerProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —addPathResolverToContainer()
Add PathResolverFactory to a mock container
protected
addPathResolverToContainer(MockContainer $container) : void
Parameters
- $container : MockContainer
-
Mock Container
Return values
void —getMockContainer()
Support method -- set up a mock container for testing the class.
protected
getMockContainer() : MockContainer
Return values
MockContainer —getPathResolver()
Get a config file path resolver
protected
getPathResolver([string|null $baseDirectory = null ]) : PathResolver
Parameters
- $baseDirectory : string|null = null
-
Optional directory to override APPLICATION_PATH