1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-17 07:46:29 +02:00
This commit is contained in:
Cameron
2019-09-03 05:07:06 -07:00
parent 751f2383ec
commit bd29c49f89
5 changed files with 48 additions and 10 deletions

View File

@@ -491,12 +491,23 @@ TMP;
{
}
*/
public function testToText()
{
$arr = array(
0 => array('html'=>"<h1><a href='#'>My Caption</a></h1>", 'expected' => 'My Caption'),
1 => array('html'=>"<div><h1><a href='#'>My Caption</a></h1></div>", 'expected' => 'My Caption'),
);
foreach($arr as $var)
{
$result = $this->tp->toText($var['html']);
$this->assertEquals($var['expected'],$result);
}
}
/*
public function testUstrtolower()
{