예제 #1
0
 function it_should_remove_value(OptionValueInterface $value)
 {
     $value->setOption($this)->shouldBeCalled();
     $this->addValue($value);
     $this->hasValue($value)->shouldReturn(true);
     $value->setOption(null)->shouldBeCalled();
     $this->removeValue($value);
     $this->hasValue($value)->shouldReturn(false);
 }