public function setUp()
 {
     if (!extension_loaded('phalcon')) {
         $this->markTestSkipped('Warning: phalcon extension is not loaded');
     }
     $this->nonUniqueEmail = '*****@*****.**';
     V::setDataProvider('Progsmile\\Validator\\DbProviders\\PhalconAdapter');
 }
 public function setUp()
 {
     $config = (require dirname(__DIR__) . '/config/database.php');
     V::setDataProvider('Progsmile\\Validator\\DbProviders\\PdoAdapter');
     try {
         V::setupPDO('mysql:' . "host={$config['host']};" . "dbname={$config['dbname']};" . 'charset=utf8', $config['username'], $config['password']);
     } catch (\Exception $e) {
         $this->markTestSkipped($e->getMessage());
     }
     $this->postData = ['firstname' => 'Denis', 'lastname' => 'Klimenko', 'email' => '*****@*****.**', 'age' => '21', 'date' => '12-2013.01 23:32', 'rule' => 'on', 'ip' => '192.168.0.0', 'password' => '123456789', 'password_repeat' => '123456789', 'json' => '[{"foo":"bar"}]', 'randNum' => rand(1, 100), 'site' => 'https://github.com/progsmile/request-validator'];
     $this->nonUniqueEmail = '*****@*****.**';
 }