PHP Classes

File: tests/mocks/database/config/mysqli.php

Recommend this page to a friend!
  Classes of Asad Ullah   PHP Google Authenticator with CodeIgniter   tests/mocks/database/config/mysqli.php   Download  
File: tests/mocks/database/config/mysqli.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Google Authenticator with CodeIgniter
2fa Google Authenticator implementation
Author: By
Last change:
Date: 6 years ago
Size: 661 bytes
 

Contents

Class file image Download
<?php

return array(

   
// Typical Database configuration
   
'mysqli' => array(
       
'dsn' => '',
       
'hostname' => 'localhost',
       
'username' => 'travis',
       
'password' => '',
       
'database' => 'ci_test',
       
'dbdriver' => 'mysqli'
   
),

   
// Database configuration with failover
   
'mysqli_failover' => array(
       
'dsn' => '',
       
'hostname' => 'localhost',
       
'username' => 'not_travis',
       
'password' => 'wrong password',
       
'database' => 'not_ci_test',
       
'dbdriver' => 'mysqli',
       
'failover' => array(
            array(
               
'dsn' => '',
               
'hostname' => 'localhost',
               
'username' => 'travis',
               
'password' => '',
               
'database' => 'ci_test',
               
'dbdriver' => 'mysqli',
            )
        )
    )
);