PHP Classes

File: tests/ConstructorFailedTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   EasyDB   tests/ConstructorFailedTest.php   Download  
File: tests/ConstructorFailedTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: EasyDB
Simple Database Abstraction Layer around PDO
Author: By
Last change: manually changing to squish "method name is not in camel caps format" style error
single-lining test classes after composer run fix-style
running composer run fix-style
Date: 6 years ago
Size: 608 bytes
 

Contents

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

namespace
ParagonIE\EasyDB\Tests;

use
ParagonIE\EasyDB\Exception\ConstructorFailed;
use
ParagonIE\EasyDB\Factory;

class
ConstructorFailedTest extends EasyDBTest
{

   
/**
     * @dataProvider badFactoryCreateArgumentProvider
     * @param $dsn
     * @param null $username
     * @param null $password
     * @param array $options
     */
   
public function testConstructorFailed($dsn, $username = null, $password = null, $options = [])
    {
       
$this->expectException(ConstructorFailed::class);
       
Factory::create($dsn, $username, $password, $options);
    }
}