Adds a config suggestion to the list.
public addSuggestion ( |
||
$suggestion |
public function testAddHasGetSuggestions() { $collector = new SuggestionCollector(); $suggestions = array(new ConfigSuggestion(), new ConfigSuggestion(), new ConfigSuggestion()); foreach ($suggestions as $suggestion) { $collector->addSuggestion($suggestion); } $this->assertTrue($collector->hasSuggestions()); $this->assertSame($suggestions, $collector->getSuggestions()); }