PHP Classes

File: tests/Driver/SqlSrvTest.php

Recommend this page to a friend!
  Packages of Scott Arciszewski   EasyDB   tests/Driver/SqlSrvTest.php   Download  
File: tests/Driver/SqlSrvTest.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: 698 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 SqlSrvTest extends DriverTestCase
{
    protected function
getDsn(): string
   
{
       
$host = \getenv('MSSQL_HOST') ?: '127.0.0.1';
       
$db = \getenv('MSSQL_DB') ?: 'easydb';
        return
"sqlsrv:Server={$host};Database={$db}";
    }

    protected function
getUsername(): string
   
{
        return \
getenv('MSSQL_USER') ?: 'sa';
    }

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