setUp() protected méthode

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