/**
  * 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(" ");
 }
Esempio n. 3
0
 /**
  * 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);
 }
Esempio n. 4
0
 /**
  * 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);
 }
Esempio n. 5
0
 /**
  * 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);
 }
Esempio n. 7
0
 /**
  * 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);
 }