setUp() protected method

Setup TestCase
protected setUp ( )
Example #1
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->session = new Session();
     $this->session->setNamespace('testing');
     $this->session->start();
 }
Example #2
0
 /**
  * Setup Callbacks
  */
 public function setUp()
 {
     parent::setUp();
     $this->alwaysTrue = new Callback(function () {
         return true;
     });
     $this->alwaysFalse = new Callback(function () {
         return false;
     });
 }
Example #3
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new NotEmpty();
 }
Example #4
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new Slug();
 }
Example #5
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new CountryCode();
 }
Example #6
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new Positive();
 }
Example #7
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->registry = new Registry();
 }
Example #8
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new Required();
 }
Example #9
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new NoWhitespace();
 }
Example #10
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new Numeric();
 }
Example #11
0
 /**
  * Setup validator instance
  */
 protected function setUp()
 {
     parent::setUp();
     $this->validator = new FloatInput();
 }