Changeset 51481
- Timestamp:
- 07/22/2021 06:49:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r51480 r51481 665 665 public function assertEqualFields( $object, $fields, $message = '' ) { 666 666 foreach ( $fields as $field_name => $field_value ) { 667 $this->assertSame( $object->$field_name, $field_value, $message . ' Field values do not match.' ); 667 $this->assertObjectHasAttribute( $field_name, $object, $message . " Property $field_name does not exist on the object." ); 668 $this->assertSame( $field_value, $object->$field_name, $message . " Value of property $field_name is not $field_value." ); 668 669 } 669 670 }
Note: See TracChangeset
for help on using the changeset viewer.