/** * @return null */ public function setUp() { $this->conn = new Connection($this->getConnectionDetail()); $this->assertTrue($this->conn->connect()); $driver = $this->conn->getDriver(); $this->adapter = new Adapter($driver); }
/** * @return null */ public function setUp() { $this->conn = new Connection($this->getConnectionDetail()); $this->assertTrue($this->conn->connect()); $driver = $this->conn->getDriver(); $this->stmtDriver = $driver->stmt_init(); $this->stmt = new Stmt($this->stmtDriver); }
/** * @return null */ public function testInitialStatus() { $this->assertTrue($this->conn->isDriver()); $this->assertInstanceOf('mysqli', $this->conn->getDriver()); $this->assertEquals('initialized', $this->conn->getStatus()); $this->assertFalse($this->conn->isError()); $this->assertFalse($this->conn->isConnected()); $this->assertEquals(0, $this->conn->getErrorCode()); $this->assertNull($this->conn->getErrorText()); }
/** * @return null */ public function setUp() { $this->conn = new Connection($this->getConnectionDetail()); $this->driver = $this->conn->getDriver(); $this->adapter = new AdapterBase($this->driver); }