Stub class used by the console integration harness.
This class enables input to be stubbed and have exceptions raised when no answer is available.
$currentIndex protected integer$replies protected array__construct( array $replies )
Constructor
$replies Cake\Console\ConsoleInput::__construct() dataAvailable( integer $timeout = 0 )
Check if data is available on stdin
$timeout optional 0 Cake\Console\ConsoleInput::dataAvailable() read( )
Read a reply
Cake\Console\ConsoleInput::read()
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.8/class-Cake.TestSuite.Stub.ConsoleInput.html