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)); }