diff --git a/tests/unit/e_parserTest.php b/tests/unit/e_parserTest.php new file mode 100644 index 000000000..c1c25d503 --- /dev/null +++ b/tests/unit/e_parserTest.php @@ -0,0 +1,190 @@ +make('e_parser'); + } + catch (Exception $e) + { + $this->assertTrue(false, "Couldn't load e_parser object"); + } + + $time = 1519512067; // Saturday 24 February 2018 - 22:41:07 + + $long = $class->toDate($time, 'long'); + $this->assertContains('Saturday 24 February 2018',$long); + + $short = $class->toDate($time, 'short'); + $this->assertContains('Feb 2018', $short); + + $rel = $class->toDate($time, 'relative'); + $this->assertContains('ago', $rel); + + + } +/* + public function testParseBBTags() + { + + } + + public function testFilter() + { + + } + + public function testCleanHtml() + { + + } + + public function testSecureAttributeValue() + { + + } + + public function testInvalidAttributeValue() + { + + } +*/ + }