| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?php
- /**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Validate
- * @subpackage UnitTests
- * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id $
- */
- /**
- * @see Zend_Db_Adapter_Abstract
- */
- require_once 'Zend/Db/Adapter/Abstract.php';
- /**
- * Mock Db adapter for Zend_Validate_Db tests
- *
- * @category Zend
- * @package Zend_Validate
- * @subpackage UnitTests
- * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
- class Db_MockNoResult extends Zend_Db_Adapter_Abstract
- {
- /**
- * Returns a fixed result
- *
- * @param string|Zend_Db_Select $sql An SQL SELECT statement.
- * @param mixed $bind Data to bind into SELECT placeholders.
- * @param mixed $fetchMode Override current fetch mode.
- * @return null
- */
- public function fetchRow($sql, $bind = array(), $fetchMode = null)
- {
- return null;
- }
- /**
- * Override for the constructor
- * @param array $config
- */
- public function __construct($config = null)
- {
- // Do Nothing.
- }
- /**
- * The below methods are un-needed, but need to be implemented for this to
- * be a concrete class
- */
- public function listTables()
- {
- return null;
- }
- public function describeTable($tableName, $schemaName = null)
- {
- return null;
- }
- protected function _connect()
- {
- return null;
- }
- public function isConnected()
- {
- return null;
- }
- public function closeConnection()
- {
- return null;
- }
- public function prepare($sql)
- {
- return null;
- }
- public function lastInsertId($tableName = null, $primaryKey = null)
- {
- return null;
- }
- protected function _beginTransaction()
- {
- return null;
- }
- protected function _commit()
- {
- return null;
- }
- protected function _rollBack()
- {
- return null;
- }
- public function setFetchMode($mode)
- {
- return null;
- }
- public function limit($sql, $count, $offset = 0)
- {
- return null;
- }
- public function supportsParameters($type)
- {
- return null;
- }
- public function getServerVersion()
- {
- return null;
- }
- }
|