Beispiel #1
0
 public function testIndifferentConnectionNames()
 {
     $conn = new Connection('test', 'marprd');
     $this->assertEquals('test', $conn->getSchema());
     $this->assertEquals('marprd', $conn->getDatabase());
     $resource = $conn->getResource();
     $this->assertTrue(is_resource($resource));
     $this->assertEquals('oci8 connection', get_resource_type($resource));
 }
Beispiel #2
0
 /**
  * @return resource
  */
 public function getConnectionResource()
 {
     return $this->connection->getResource();
 }