コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
 /**
  * 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);
 }
コード例 #4
0
 /**
  * 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);
 }
コード例 #5
0
 /**
  * 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);
 }
コード例 #6
0
 /**
  * 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);
 }