PHP Classes

File: tests/MySqlAbstractDatabaseTestCase.php

Recommend this page to a friend!
  Classes of Maik Greubel   Caribu ORM   tests/MySqlAbstractDatabaseTestCase.php   Download  
File: tests/MySqlAbstractDatabaseTestCase.php
Role: Unit test script
Content type: text/plain
Description: Test case abstraction
Class: Caribu ORM
Map objects to databases records using annotations
Author: By
Last change: Strong type and documentation fixes
Date: 7 years ago
Size: 708 bytes
 

Contents

Class file image Download
<?php
namespace Nkey\Caribu\Tests;

/**
 * MySql test case abstraction
 *
 * @author Maik Greubel <greubel@nkey.de>
 * This class is part of Caribu package
 */
abstract class MySqlAbstractDatabaseTestCase extends AbstractDatabaseTestCase
{
    public function
__construct()
    {
       
parent::__construct();
       
       
$this->options = array(
           
'type' => 'mysql',
           
'host' => 'localhost',
           
'schema' => getenv('TEST_DATABASE') === false ? 'test' : getenv('TEST_DATABASE'),
           
'user' => getenv('TEST_USER') === false ? 'test' : getenv('TEST_USER'),
           
'password' => getenv('TEST_PASSWORD') === false ? '' : getenv('TEST_PASSWORD')
        );
    }
}