diff --git a/tests/phpunit/tests/formatting/balanceTags.php b/tests/phpunit/tests/formatting/balanceTags.php index 2631343ec64b5..4d1c8fadd5a06 100644 --- a/tests/phpunit/tests/formatting/balanceTags.php +++ b/tests/phpunit/tests/formatting/balanceTags.php @@ -205,29 +205,28 @@ public function data_single_tags() { } /** + * Test unknown self closing tag. + * * @ticket 1597 + * @dataProvider data_unknown_single_tags_with_closing_tag */ - public function test_closes_unknown_single_tags_with_closing_tag() { + public function test_closes_unknown_single_tags_with_closing_tag( $input, $expected ) { + $this->assertSame( $expected, balanceTags( $input, true ) ); + } - $inputs = array( - '', - '', - '
', - '', - '', - ); - $expected = array( - '', - '', - '', - '', - // Valid tags are transformed to lowercase. - '', + /** + * Data provider for test_closes_unknown_single_tags_with_closing_tag. + * + * @return array