assertInstanceOf(\rcube_enriched::class, $object, 'Class constructor');
}
/**
* Test to_html()
*/
public function test_to_html()
{
$enriched = 'the-text';
$expected = 'the-text';
$result = \rcube_enriched::to_html($enriched);
$this->assertSame($expected, $result);
}
/**
* Data for test_formatting()
*/
public static function provide_formatting_cases(): iterable
{
return [
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
['', ''],
];
}
/**
* Test formatting conversion
*
* @dataProvider provide_formatting_cases
*/
#[DataProvider('provide_formatting_cases')]
public function test_formatting($enriched, $expected)
{
$result = \rcube_enriched::to_html($enriched);
$this->assertSame($expected, $result);
}
}