public function testValuesOutput() { $suggestions =
new CompletionSuggestions();
$suggestions->
suggestValues([ new Suggestion('Green', 'Beans are green'
),
new Suggestion('Red', 'Rose are red'
),
new Suggestion('Yellow', 'Canaries are yellow'
),
]);
$stream =
fopen('php://memory', 'rw+'
);
$this->
getCompletionOutput()->
write($suggestions,
new StreamOutput($stream));
fseek($stream, 0
);
$this->
assertEquals($this->
getExpectedValuesOutput(),
stream_get_contents($stream));
}}