PopTest\Form\FieldsTest::testAddFieldsFromTableException PHP Method

testAddFieldsFromTableException() public method

    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());
    }