You are here

interface TestStatementInterface in Drupal 9

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

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. 4
StatementInterface::fetch public function Fetches the next row from a result set. 3
StatementInterface::fetchAll public function Returns an array containing all of the result set rows. 4
StatementInterface::fetchAllAssoc public function Returns the result set as an associative array keyed by the given field. 4
StatementInterface::fetchAllKeyed public function Returns the entire result set as a single associative array. 4
StatementInterface::fetchAssoc public function Fetches the next row and returns it as an associative array. 4
StatementInterface::fetchCol public function Returns an entire single column of a result set as an indexed array. 4
StatementInterface::fetchField public function Returns a single field from the next record of a result set. 4
StatementInterface::fetchObject public function Fetches the next row and returns it as an object. 3
StatementInterface::getQueryString public function Gets the query string of this statement. 4
StatementInterface::rowCount public function Returns the number of rows affected by the last SQL statement. 4
StatementInterface::setFetchMode public function Sets the default fetch mode for this statement. 4