mirror of
https://github.com/e107inc/e107.git
synced 2025-10-17 07:46:29 +02:00
Fixes
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user