Changeset 56969
- Timestamp:
- 10/18/2023 10:39:19 AM (18 months ago)
- Location:
- trunk/tests/phpunit/tests/compat
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/compat/arrayKeyFirst.php
r56548 r56969 25 25 */ 26 26 public function test_array_key_first( $expected, $arr ) { 27 if ( ! function_exists( 'array_key_first' ) ) { 28 $this->markTestSkipped( 'array_key_first() is not available.' ); 29 } else { 30 $this->assertSame( 31 $expected, 32 array_key_first( $arr ) 33 ); 34 } 27 $this->assertSame( $expected, array_key_first( $arr ) ); 35 28 } 36 29 -
trunk/tests/phpunit/tests/compat/arrayKeyLast.php
r54064 r56969 26 26 */ 27 27 public function test_array_key_last( $expected, $arr ) { 28 if ( ! function_exists( 'array_key_last' ) ) { 29 $this->markTestSkipped( 'array_key_last() is not available.' ); 30 } else { 31 $this->assertSame( $expected, array_key_last( $arr ) ); 32 } 28 $this->assertSame( $expected, array_key_last( $arr ) ); 33 29 } 34 30 -
trunk/tests/phpunit/tests/compat/strContains.php
r56548 r56969 27 27 */ 28 28 public function test_str_contains( $expected, $haystack, $needle ) { 29 if ( ! function_exists( 'str_contains' ) ) { 30 $this->markTestSkipped( 'str_contains() is not available.' ); 31 } else { 32 $this->assertSame( 33 $expected, 34 str_contains( $haystack, $needle ) 35 ); 36 } 29 $this->assertSame( $expected, str_contains( $haystack, $needle ) ); 37 30 } 38 31 -
trunk/tests/phpunit/tests/compat/strEndsWith.php
r56548 r56969 27 27 */ 28 28 public function test_str_ends_with( $expected, $haystack, $needle ) { 29 if ( ! function_exists( 'str_ends_with' ) ) { 30 $this->markTestSkipped( 'str_ends_with() is not available.' ); 31 } else { 32 $this->assertSame( 33 $expected, 34 str_ends_with( $haystack, $needle ) 35 ); 36 } 29 $this->assertSame( $expected, str_ends_with( $haystack, $needle ) ); 37 30 } 38 31 -
trunk/tests/phpunit/tests/compat/strStartsWith.php
r56548 r56969 27 27 */ 28 28 public function test_str_starts_with( $expected, $haystack, $needle ) { 29 if ( ! function_exists( 'str_starts_with' ) ) { 30 $this->markTestSkipped( 'str_starts_with() is not available.' ); 31 } else { 32 $this->assertSame( 33 $expected, 34 str_starts_with( $haystack, $needle ) 35 ); 36 } 29 $this->assertSame( $expected, str_starts_with( $haystack, $needle ) ); 37 30 } 38 31
Note: See TracChangeset
for help on using the changeset viewer.