Пример #1
0
 /**
  * @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);
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function unserialize($serialized)
 {
     $this->options->unserialize($serialized);
     return $this;
 }