PHP Classes

File: tests/Driver/FirebirdTest.php

Recommend this page to a friend!
  Packages of Scott Arciszewski   EasyDB   tests/Driver/FirebirdTest.php   Download  
File: tests/Driver/FirebirdTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: EasyDB
Simple Database Abstraction Layer around PDO
Author: By
Last change:
Date: 4 months ago
Size: 749 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\EasyDB\Tests\Driver;

use
ParagonIE\EasyDB\EasyDB;
use
ParagonIE\EasyDB\Factory;
use
PHPUnit\Framework\Attributes\CoversClass;

#[CoversClass(EasyDB::class)]
#[CoversClass(Factory::class)]
class FirebirdTest extends DriverTestCase
{
    protected function
getDsn(): string
   
{
       
$host = \getenv('FIREBIRD_HOST') ?: '127.0.0.1';
       
$db = \getenv('FIREBIRD_DB') ?: '/var/lib/firebird/3.0/data/easydb.fdb';
        return
"firebird:dbname={$host}:{$db}";
    }

    protected function
getUsername(): string
   
{
        return \
getenv('FIREBIRD_USER') ?: 'SYSDBA';
    }

    protected function
getPassword(): string
   
{
        return \
getenv('FIREBIRD_PASS') ?: 'masterkey';
    }
}