public function setUp() { if (!extension_loaded('oci8')) { $this->markTestSkipped('oci8 is not installed.'); } parent::setUp(); }
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(); }
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); }
protected function setUp() { parent::setUp(); $this->driver = $this->createDriver(); }