suggestions() публичный Метод

Assign suggestions.
public suggestions ( $suggestions )
Пример #1
0
 public function testSuggestions()
 {
     $opt = new Option('scope');
     $opt->suggestions(['public', 'private']);
     $this->assertNotEmpty($opt->getSuggestions());
     $this->assertSame(['public', 'private'], $opt->getSuggestions());
     $opt->setValue('public');
     $opt->setValue('private');
     $this->assertEquals('private', $opt->value);
     $this->assertEquals('--scope=[public,private]', $opt->renderReadableSpec(true));
 }