Changeset 49007
- Timestamp:
- 09/20/2020 12:55:07 AM (4 years ago)
- Location:
- trunk/tests/phpunit/tests/rest-api
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-sanitization.php
r48937 r49007 361 361 */ 362 362 public function test_format_validation_is_applied_if_missing_type() { 363 $this->expectException( 'PHPUnit_Framework_Error_Notice' ); // For the undefined index. 363 if ( PHP_VERSION_ID >= 80000 ) { 364 $this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index. 365 } else { 366 $this->expectException( 'PHPUnit_Framework_Error_Notice' ); 367 } 368 364 369 $this->setExpectedIncorrectUsage( 'rest_sanitize_value_from_schema' ); 365 370 -
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.