/** * @test */ public function unserialize_success() { $input = new OptionMap(); $input->offsetSet('example', 1337); $this->target->offsetSet('test', 42); $this->target->unserialize($input->serialize()); $this->assertEquals(42, $this->target->offsetGet('test')); $this->assertEquals(1337, $this->target->offsetGet('example')); }
/** * @return null|string */ public function getCachePath() { return $this->options->offsetGet(self::OPTION_CACHE); }