PHP Classes

File: tests/eMapper/SQLite/ManagerTest.php

Recommend this page to a friend!
  Classes of Emmanuel Antico   eMapper   tests/eMapper/SQLite/ManagerTest.php   Download  
File: tests/eMapper/SQLite/ManagerTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: eMapper
Database abstraction layer that maps data types
Author: By
Last change:
Date: 9 years ago
Size: 581 bytes
 

Contents

Class file image Download
<?php
namespace eMapper\SQLite;

use
eMapper\AbstractManagerTest;
use
eMapper\Engine\SQLite\SQLiteDriver;
use
Acme\Type\RGBColorTypeHandler;
use
eMapper\Mapper;

/**
 * SQLite manager test
 * @author emaphp
 * @group sqlite
 * @group manager
 */
class ManagerTest extends AbstractManagerTest {
    public function
build() {
       
$this->driver = new SQLiteDriver(SQLiteTest::$filename);
       
$this->mapper = new Mapper($this->driver);
       
$this->mapper->addType('Acme\RGBColor', new RGBColorTypeHandler());
       
$this->productsManager = $this->mapper->buildManager('Acme\Entity\Product');
    }
}
?>