Esempio n. 1
0
 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'));
 }
Esempio n. 2
0
 public function testSource()
 {
     $imago = new OptionSource(['city' => 'Nattavaara']);
     $should = 'OptionSource({"city":"Nattavaara"})';
     $this->assertSame($should, $imago->scent());
 }