setUp() protected method

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