PHP Classes
elePHPant
Icontem

File: tests/GetDriverTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  EasyDB  >  tests/GetDriverTest.php  >  Download  
File: tests/GetDriverTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: EasyDB
Simple Database Abstraction Layer around PDO
Author: By
Last change: squishing error regarding default values
manually changing to squish "method name is not in camel caps format" style error
Date: 1 year ago
Size: 671 bytes
 

 

Contents

Class file image Download
<?php
declare(strict_types=1);

namespace
ParagonIE\EasyDB\Tests;

use
ParagonIE\EasyDB\Factory;

class
GetDriverTest extends EasyDBTest
{
   
/**
     * @param $dsn
     * @param string|null $username
     * @param string|null $password
     * @param array $options
     * @param string $expectedDriver
     *
     * @dataProvider goodFactoryCreateArgumentProvider
     */
   
public function testGetDriver(
       
$expectedDriver,
       
$dsn,
       
$username = null,
       
$password = null,
       
$options = []
    ) {
       
$db = Factory::create($dsn, $username, $password, $options);
       
$this->assertEquals($db->getDriver(), $expectedDriver);
    }
}