Exemplo n.º 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));
 }
Exemplo n.º 2
0
 /**
  * @return string
  */
 public function getSchema()
 {
     return $this->connection->getSchema();
 }