- Timestamp:
- 03/19/2023 12:03:30 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/getUrlInContent.php
r53562 r55562 9 9 10 10 /** 11 * Validate the get_url_in_content function 12 * 13 * @dataProvider data_get_url_in_content 14 */ 15 public function test_get_url_in_content( $in_str, $exp_str ) { 16 $this->assertSame( $exp_str, get_url_in_content( $in_str ) ); 17 } 18 19 /** 11 20 * URL Content Data Provider 12 21 * 13 22 * array ( input_txt, converted_output_txt ) 14 23 */ 15 public function get_input_output() {24 public function data_get_url_in_content() { 16 25 return array( 17 26 array( // Empty content. … … 41 50 ); 42 51 } 43 44 /**45 * Validate the get_url_in_content function46 *47 * @dataProvider get_input_output48 */49 public function test_get_url_in_content( $in_str, $exp_str ) {50 $this->assertSame( $exp_str, get_url_in_content( $in_str ) );51 }52 52 }
Note: See TracChangeset
for help on using the changeset viewer.