/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 */ protected function setUp() { parent::setUp(); $this->instance = $prompter = new CallbackPrompter(null, null, null, $this->output); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 */ protected function setUp() { parent::setUp(); $this->instance = $prompter = new ValidatePrompter('Tell me something: ', null, array('flower', 'sakura', 'rose'), null, $this->output); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 */ protected function setUp() { parent::setUp(); $this->instance = $prompter = new SelectPrompter(null, null, $this->options, null, $this->output); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 */ protected function setUp() { parent::setUp(); $this->instance = $prompter = new FakePasswordPrompter(null, null, null, $this->output); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 */ protected function setUp() { parent::setUp(); $this->instance = $prompter = new TextPrompter('Tell me something: ', null, null, $this->output); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 */ protected function setUp() { parent::setUp(); $this->instance = $prompter = new BooleanPrompter('True or False [Y/n]: ', null, null, $this->output); }