PHP Classes

File: tests/PostgresAbstractDatabaseTestCase.php

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

Contents

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

/**
 * Postgresql test case abstraction
 *
 * @author Maik Greubel <greubel@nkey.de>
 * This class is part of Caribu package
 */
abstract class PostgresAbstractDatabaseTestCase extends AbstractDatabaseTestCase
{
    public function
__construct()
    {
       
parent::__construct();
       
       
$this->options = array(
           
'type' => 'postgres',
           
'host' => 'localhost',
           
'schema' => getenv('PG_TEST_DATABASE') === false ? 'testing' : getenv('PG_TEST_DATABASE'),
           
'user' => getenv('PG_TEST_USER') === false ? 'testing' : getenv('PG_TEST_USER'),
           
'password' => getenv('PG_TEST_PASSWORD') === false ? md5('testing') : getenv('PG_TEST_PASSWORD')
        );
    }
}


For more information send a message to info at phpclasses dot org.