/** * @test */ public function jsonSerialize_success() { $this->target->offsetSet('test', 1337); $result = json_encode($this->target); $this->assertNotEmpty($result); $this->assertContains('test', $result); $this->assertContains('1337', $result); }
/** * @inheritdoc */ public function unserialize($serialized) { $this->options->unserialize($serialized); return $this; }