- Timestamp:
- 09/19/2020 03:52:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/underscoreReturn.php
r47780 r49006 9 9 class Tests_Functions_UnderscoreReturn extends WP_UnitTestCase { 10 10 11 /** 12 * @covers ::__return_true 13 */ 11 14 public function test__return_true() { 12 15 $this->assertTrue( __return_true() ); 13 16 } 14 17 18 /** 19 * @covers ::__return_false 20 */ 15 21 public function test__return_false() { 16 22 $this->assertFalse( __return_false() ); 17 23 } 18 24 25 /** 26 * @covers ::__return_zero 27 */ 19 28 public function test__return_zero() { 20 29 $this->assertSame( 0, __return_zero() ); 21 30 } 22 31 32 /** 33 * @covers ::__return_empty_array 34 */ 23 35 public function test__return_empty_array() { 24 36 $this->assertSame( array(), __return_empty_array() ); 25 37 } 26 38 39 /** 40 * @covers ::__return_null 41 */ 27 42 public function test__return_null() { 28 43 $this->assertNull( __return_null() ); 29 44 } 30 45 46 /** 47 * @covers ::__return_empty_string 48 */ 31 49 public function test__return_empty_string() { 32 50 $this->assertSame( '', __return_empty_string() );
Note: See TracChangeset
for help on using the changeset viewer.