zendframework / zend-console

Console component from Zend Framework
BSD 3-Clause "New" or "Revised" License
48 stars 31 forks source link

Use the console adapter to write instead of echo. #12

Closed griffbrad closed 8 years ago

griffbrad commented 8 years ago

The Char prompt was just echoing directly rather than using the writeLine() method from the Console adapter. This was done correctly in the Select prompt already. Using echo can make testing more difficult because you can't mock the write away and instead of to do hacky things like using output buffering.

weierophinney commented 8 years ago

Merged to develop for release with 2.6.0 (later today).