- Timestamp:
- 03/19/2023 12:03:30 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/normalizeWhitespace.php
r53562 r55562 6 6 */ 7 7 class Tests_Formatting_NormalizeWhitespace extends WP_UnitTestCase { 8 9 /** 10 * Validate the normalize_whitespace function 11 * 12 * @dataProvider data_normalize_whitespace 13 */ 14 public function test_normalize_whitespace( $in_str, $exp_str ) { 15 $this->assertSame( $exp_str, normalize_whitespace( $in_str ) ); 16 } 17 8 18 /** 9 19 * WhitespaceTest Content DataProvider … … 11 21 * array( input_txt, converted_output_txt) 12 22 */ 13 public function get_input_output() {23 public function data_normalize_whitespace() { 14 24 return array( 15 25 array( … … 43 53 ); 44 54 } 45 46 /**47 * Validate the normalize_whitespace function48 *49 * @dataProvider get_input_output50 */51 public function test_normalize_whitespace( $in_str, $exp_str ) {52 $this->assertSame( $exp_str, normalize_whitespace( $in_str ) );53 }54 55 }
Note: See TracChangeset
for help on using the changeset viewer.