Ejemplo n.º 1
0
 /**
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * @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);
 }
Ejemplo n.º 3
0
 /**	
  * @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());
 }
Ejemplo n.º 4
0
 /**
  * @return null
  */
 public function setUp()
 {
     $this->conn = new Connection($this->getConnectionDetail());
     $this->driver = $this->conn->getDriver();
     $this->adapter = new AdapterBase($this->driver);
 }