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