UtilsTest
extends TestCase
in package
Solr Utils Test Class
Tags
Table of Contents
- sanitizeDateProvider() : array<string|int, mixed>
- Data provider for testSanitizeDate
- testParseRange() : void
- Test parseRange functionality.
- testSanitizeDate() : void
- Test sanitizeDate functionality.
Methods
sanitizeDateProvider()
Data provider for testSanitizeDate
public
static sanitizeDateProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —testParseRange()
Test parseRange functionality.
public
testParseRange() : void
Return values
void —testSanitizeDate()
Test sanitizeDate functionality.
public
testSanitizeDate(string $date, bool $rangeEnd, string|null $expected) : void
Parameters
- $date : string
-
Date string
- $rangeEnd : bool
-
Is this the end of a range?
- $expected : string|null
-
Expected result