- Timestamp:
- 09/20/2020 12:55:07 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-validation.php
r48937 r49007 157 157 */ 158 158 public function test_format_validation_is_applied_if_missing_type() { 159 $this->expectException( 'PHPUnit_Framework_Error_Notice' ); // For the undefined index. 159 if ( PHP_VERSION_ID >= 80000 ) { 160 $this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index. 161 } else { 162 $this->expectException( 'PHPUnit_Framework_Error_Notice' ); 163 } 164 160 165 $this->setExpectedIncorrectUsage( 'rest_validate_value_from_schema' ); 161 166
Note: See TracChangeset
for help on using the changeset viewer.