public static function factory($type, array $options, $prefix = 'Pop\\Db\\Adapter\\') { return new self($type, $options, $prefix); }
public function testAddFieldsFromTableException() { $this->setExpectedException('Pop\\Form\\Exception'); Users::setDb(Db::factory('Sqlite', array('database' => __DIR__ . '/../tmp/test.sqlite'))); $f = Fields::factory(array()); $f->addFieldsFromTable(array()); }