JHtmlDateTest::testRelative
Tests the JHtmlDate::relative method.
Signature
public function testRelative(string
$result,
[string
$date = null,
[string
$unit = null,
[string
$time = null]]] )
Parameters
-
$result
- The expected test result
-
$date
- The date to convert
-
$unit
- The optional unit of measurement to return
-
$time
- An optional time to compare to, defaults to now
Returns
- void