Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (41 sloc) 1.652 kb
* ThinkUp/tests/TestOfPDOCorePluginDAO.php
* Copyright (c) 2009-2012 Gina Trapani
* This file is part of ThinkUp (
* ThinkUp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
* later version.
* ThinkUp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
* You should have received a copy of the GNU General Public License along with ThinkUp. If not, see
* <>.
* @author Gina Trapani <ginatrapani[at]gmail[dot]com>
* @license
* @copyright 2009-2012 Gina Trapani
require_once dirname(__FILE__).'/init.tests.php';
require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/autorun.php';
require_once THINKUP_WEBAPP_PATH.'';
require_once THINKUP_WEBAPP_PATH.'plugins/twitter/model/class.TwitterInstance.php';
class TestOfPDOCorePluginDAO extends ThinkUpUnitTestCase {
public function testInitDAO() {
$test_dao = new TestCorePluginMySQLDAO();
public function testGetFields() {
$test_dao = new TestCorePluginMySQLDAO();
$fields = $test_dao->getFieldListForTesting();
$this->assertEqual($fields, ", test_name, test_id");
Jump to Line
Something went wrong with that request. Please try again.