Changeset 46214 for trunk/tests/phpunit/tests/rest-api/rest-request.php
- Timestamp:
- 09/20/2019 10:01:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-request.php
r45607 r46214 492 492 493 493 public function test_has_valid_params_json_error() { 494 if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {495 return $this->markTestSkipped( 'JSON validation is only available for PHP 5.3+' );496 }497 498 494 $this->request->set_header( 'Content-Type', 'application/json' ); 499 495 $this->request->set_body( '{"invalid": JSON}' ); … … 508 504 509 505 public function test_has_valid_params_empty_json_no_error() { 510 if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {511 return $this->markTestSkipped( 'JSON validation is only available for PHP 5.3+' );512 }513 514 506 $this->request->set_header( 'Content-Type', 'application/json' ); 515 507 $this->request->set_body( '' );
Note: See TracChangeset
for help on using the changeset viewer.