Changeset 53562 for trunk/tests/phpunit/tests/formatting/slashit.php
- Timestamp:
- 06/23/2022 08:27:34 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/formatting/slashit.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/slashit.php
r52010 r53562 5 5 */ 6 6 class Tests_Formatting_Slashit extends WP_UnitTestCase { 7 8 /** 9 * @covers ::backslashit 10 */ 7 11 public function test_backslashes_middle_numbers() { 8 12 $this->assertSame( "\\a-!9\\a943\\b\\c", backslashit( 'a-!9a943bc' ) ); 9 13 } 10 14 15 /** 16 * @covers ::backslashit 17 */ 11 18 public function test_backslashes_alphas() { 12 19 $this->assertSame( "\\a943\\b\\c", backslashit( 'a943bc' ) ); 13 20 } 14 21 22 /** 23 * @covers ::backslashit 24 */ 15 25 public function test_double_backslashes_leading_numbers() { 16 26 $this->assertSame( '\\\\95', backslashit( '95' ) ); 17 27 } 18 28 29 /** 30 * @covers ::untrailingslashit 31 */ 19 32 public function test_removes_trailing_slashes() { 20 33 $this->assertSame( 'a', untrailingslashit( 'a/' ) ); … … 24 37 /** 25 38 * @ticket 22267 39 * 40 * @covers ::untrailingslashit 26 41 */ 27 42 public function test_removes_trailing_backslashes() { … … 32 47 /** 33 48 * @ticket 22267 49 * 50 * @covers ::untrailingslashit 34 51 */ 35 52 public function test_removes_trailing_mixed_slashes() { … … 38 55 } 39 56 57 /** 58 * @covers ::trailingslashit 59 */ 40 60 public function test_adds_trailing_slash() { 41 61 $this->assertSame( 'a/', trailingslashit( 'a' ) ); 42 62 } 43 63 64 /** 65 * @covers ::trailingslashit 66 */ 44 67 public function test_does_not_add_trailing_slash_if_one_exists() { 45 68 $this->assertSame( 'a/', trailingslashit( 'a/' ) ); … … 48 71 /** 49 72 * @ticket 22267 73 * 74 * @covers ::trailingslashit 50 75 */ 51 76 public function test_converts_trailing_backslash_to_slash_if_one_exists() {
Note: See TracChangeset
for help on using the changeset viewer.