Skip to content
Permalink
Browse files

REST API: Add test class file incorrectly omitted from [45807].

Props @TimothyBlynJacobs.
See #43392.


git-svn-id: https://develop.svn.wordpress.org/trunk@45808 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
kadamwhite committed Aug 15, 2019
1 parent c92ef7c commit 22480c035bc0753bea98ff91377edc1d9d799f57
Showing with 21 additions and 0 deletions.
  1. +21 −0 tests/phpunit/includes/class-jsonserializable-object.php
@@ -0,0 +1,21 @@
<?php
/**
* Unit Tests: JsonSerializable_Object
*
* @package WordPress
* @subpackage UnitTests
* @since 5.3.0
*/
class JsonSerializable_Object implements JsonSerializable {
private $data;
public function __construct( $data ) {
$this->data = $data;
}
public function jsonSerialize() {
return $this->data;
}
}

0 comments on commit 22480c0

Please sign in to comment.
You can’t perform that action at this time.