public function testIndependentOptionContainerOnClone() { $imago1 = new OptionSource(['city' => 'Kurravaara']); $imago2 = clone $imago1; $this->assertSame('Kurravaara', $imago2->options()->get('city')); $imago2->options()->set('city', 'Jukkasjärvi'); $this->assertSame('Kurravaara', $imago1->options()->get('city')); }
public function testSource() { $imago = new OptionSource(['city' => 'Nattavaara']); $should = 'OptionSource({"city":"Nattavaara"})'; $this->assertSame($should, $imago->scent()); }