Ejemplo n.º 1
0
 public function setUp()
 {
     if (!extension_loaded('oci8')) {
         $this->markTestSkipped('oci8 is not installed.');
     }
     parent::setUp();
 }
Ejemplo n.º 2
0
 protected function setUp()
 {
     if (!extension_loaded('mysqli')) {
         $this->markTestSkipped('mysqli is not installed.');
     }
     parent::setUp();
     $this->connectionMock = $this->getMockBuilder('Doctrine\\DBAL\\Driver\\Mysqli\\MysqliConnection')->disableOriginalConstructor()->getMockForAbstractClass();
 }
Ejemplo n.º 3
0
 protected function setUp()
 {
     if (!extension_loaded('PDO')) {
         $this->markTestSkipped('PDO is not installed.');
     }
     parent::setUp();
     $this->wrappedException = new \PDOException(self::MESSAGE, self::SQLSTATE);
     $this->wrappedException->errorInfo = array(self::SQLSTATE, self::ERROR_CODE);
     $this->exception = new PDOException($this->wrappedException);
 }
Ejemplo n.º 4
0
 protected function setUp()
 {
     parent::setUp();
     $this->driver = $this->createDriver();
 }