public function testGetNotedDefinitions_WithDefinedNotes()
 {
     $definitions = array();
     $definitions[] = $this->object->define('NewComponent')->addNote('controller.load', 'resolve');
     $definitions[] = $this->object->define('AnoterLoader')->addNotes(array('controller.load' => 'resolve', 'another.load' => 'resolve_another'));
     $this->assertThat($this->object->getNotedDefinitions('controller.load'), $this->equalTo($definitions));
 }
 /**
  * Create new component definition with $component key in repository.
  * Dispose of already created adapter associated with $component
  *
  * @param string $component
  * @return ComponentDefinition Builder for fluent interface interaction
  */
 public function define($component)
 {
     unset($this->adapters[$component]);
     return parent::define($component);
 }