Changeset 54891 for trunk/tests/phpunit/tests/functions.php
- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions.php
r54889 r54891 6 6 class Tests_Functions extends WP_UnitTestCase { 7 7 public function test_wp_parse_args_object() { 8 $x = new MockClass ;8 $x = new MockClass(); 9 9 $x->_baba = 5; 10 10 $x->yZ = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase … … 18 18 wp_parse_args( $x ) 19 19 ); 20 $y = new MockClass ;20 $y = new MockClass(); 21 21 $this->assertSame( array(), wp_parse_args( $y ) ); 22 22 } … … 42 42 43 43 public function test_wp_parse_args_defaults() { 44 $x = new MockClass ;44 $x = new MockClass(); 45 45 $x->_baba = 5; 46 46 $x->yZ = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase … … 1114 1114 */ 1115 1115 public function test_wp_json_encode_object() { 1116 $object = new stdClass ;1116 $object = new stdClass(); 1117 1117 $object->a = 'b'; 1118 1118 $this->assertSame( wp_json_encode( $object ), '{"a":"b"}' );
Note: See TracChangeset
for help on using the changeset viewer.