public function testCanCount()
 {
     $set = new OptionSet();
     $set->add($this->createOption());
     $set->add($this->createOption());
     $this->assertEquals(2, $set->count());
 }
 /**
  * Adds an option
  *
  * @param Option $option
  *
  * @throws \Noichl\ProductConfigurator\OptionSet\Exception\OptionMaxNumberExceededException
  *                If max number of options for an article is exceeded.
  * @throws \Noichl\ProductConfigurator\OptionSet\Exception\OptionNotAllowedException
  *                If the added option is not allowed.
  */
 public function addOption(Option $option)
 {
     $this->options->add($option);
 }