mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
[ticket/11768] Updated utils service
Updated docblocks. Removed remove_formatting() because it overlaps with clean_formatting() PHPBB3-11768
This commit is contained in:
@@ -45,35 +45,6 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider get_remove_formatting_tests
|
||||
*/
|
||||
public function test_remove_formatting($original, $expected)
|
||||
{
|
||||
$container = $this->get_test_case_helpers()->set_s9e_services();
|
||||
$utils = $container->get('text_formatter.utils');
|
||||
|
||||
$this->assertSame($expected, $utils->remove_formatting($original));
|
||||
}
|
||||
|
||||
public function get_remove_formatting_tests()
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
'<t>Plain text</t>',
|
||||
'Plain text'
|
||||
),
|
||||
array(
|
||||
"<t>Multi<br/>\nline</t>",
|
||||
"Multi\nline"
|
||||
),
|
||||
array(
|
||||
'<r><B><s>[b]</s>bold<e>[/b]</e></B></r>',
|
||||
'bold'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider get_clean_formatting_tests
|
||||
*/
|
||||
|
Reference in New Issue
Block a user