PHP Classes
elePHPant
Icontem

File: tests/ErrorInfoTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  EasyDB  >  tests/ErrorInfoTest.php  >  Download  
File: tests/ErrorInfoTest.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: 1 year ago
Size: 605 bytes
 

Contents

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

namespace
ParagonIE\EasyDB\Tests;

/**
 * Class ErrorInfoTest
 * @package ParagonIE\EasyDB\Tests
 */
class ErrorInfoTest extends EasyDBTest
{

   
/**
     * @dataProvider goodFactoryCreateArgument2EasyDBProvider
     * @param callable $cb
     */
   
public function testNoError(callable $cb)
    {
       
$db = $this->easyDBExpectedFromCallable($cb);

       
$info = $db->errorInfo();
       
$this->assertTrue(is_array($info));
       
$this->assertSame($info[0], '00000');
       
$this->assertSame($info[1], null);
       
$this->assertSame($info[2], null);
    }
}