* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Test; use \Zend_Db_Adapter_Pdo_Abstract; use \Zend_Db_Adapter_Pdo_Mysql; use \Zend_Db_Adapter_Pdo_Pgsql; use \Zend_Db_Adapter_Pdo_Oci; interface DbTest { /** * PHPUnit provider for mysql * * @return Zend_Db_Adapter_Pdo_Mysql */ public function mysqlDb(); /** * PHPUnit provider for pgsql * * @return Zend_Db_Adapter_Pdo_Pgsql */ public function pgsqlDb(); /** * PHPUnit provider for oracle * * @return Zend_Db_Adapter_Pdo_Oci */ public function oracleDb(); /** * Executes sql file on PDO object * * @param Zend_Db_Adapter_PDO_Abstract $resource * @param string $filename * * @return boolean Operational success flag */ public function loadSql(Zend_Db_Adapter_PDO_Abstract $resource, $filename); /** * Setup provider for testcase * * @param string|Zend_Db_Adapter_PDO_Abstract|null $resource */ public function setupDbProvider($resource); }