Example #1
0
function fixture_mapper($mapperName)
{
    global $fixture_mappers;
    // I promise, globals are not used in the actual codebase, only for these tests...
    if (!isset($fixture_mappers[$mapperName])) {
        $mapperClass = 'Fixture_' . $mapperName . '_Mapper';
        $fixture_mappers[$mapperName] = new $mapperClass(fixture_adapter());
    }
    return $fixture_mappers[$mapperName];
}
Example #2
0
 public function testAdapterInstance()
 {
     $this->assertTrue(fixture_adapter() instanceof phpDataMapper_Adapter_Interface);
 }