You are here

interface TestStatementInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface
  2. 9 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface

As StatementInterface extends \Traversable, which though always needs an additional interface. The Statement class itself can't be mocked because of its __wakeup function.

Hierarchy

  • interface \Drupal\Core\Database\StatementInterface extends \Drupal\Core\Database\Traversable
    • interface \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface extends \Drupal\Tests\views\Unit\Plugin\pager\Iterator

Expanded class hierarchy of TestStatementInterface

All classes that implement TestStatementInterface

File

core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php, line 282
Contains \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest.

Namespace

Drupal\Tests\views\Unit\Plugin\pager
View source
interface TestStatementInterface extends StatementInterface, \Iterator {

}

Members

Namesort descending Modifiers Type Description Overrides
StatementInterface::execute public function Executes a prepared statement. 1
StatementInterface::fetch public function Fetches the next row from a result set. 1
StatementInterface::fetchAll public function Returns an array containing all of the result set rows. 1
StatementInterface::fetchAllAssoc public function Returns the result set as an associative array keyed by the given field. 1
StatementInterface::fetchAllKeyed public function Returns the entire result set as a single associative array. 1
StatementInterface::fetchAssoc public function Fetches the next row and returns it as an associative array. 1
StatementInterface::fetchCol public function Returns an entire single column of a result set as an indexed array. 1
StatementInterface::fetchField public function Returns a single field from the next record of a result set. 1
StatementInterface::fetchObject public function Fetches the next row and returns it as an object. 1
StatementInterface::getConnectionTarget public function Returns the target connection this statement is associated with. 1
StatementInterface::getQueryString public function Gets the query string of this statement. 1
StatementInterface::rowCount public function Returns the number of rows affected by the last SQL statement. 1
StatementInterface::setFetchMode public function Sets the default fetch mode for this statement. 1