assertInstanceOf('rcube_enriched', $object, "Class constructor");
}
/**
* Test to_html()
*/
function test_to_html()
{
$enriched = 'the-text';
$expected = 'the-text';
$result = rcube_enriched::to_html($enriched);
$this->assertSame($expected, $result);
}
/**
* Data for test_formatting()
*/
function data_formatting()
{
return array(
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
array('', ''),
);
}
/**
* Test formatting conversion
* @dataProvider data_formatting
*/
function test_formatting($enriched, $expected)
{
$result = rcube_enriched::to_html($enriched);
$this->assertSame($expected, $result);
}
}