interface TestStatementInterface in Drupal 9
Same name and namespace in other branches
- 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\pagerView source
interface TestStatementInterface extends StatementInterface, \Iterator {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StatementInterface:: |
public | function | Executes a prepared statement. | 4 |
StatementInterface:: |
public | function | Fetches the next row from a result set. | 3 |
StatementInterface:: |
public | function | Returns an array containing all of the result set rows. | 4 |
StatementInterface:: |
public | function | Returns the result set as an associative array keyed by the given field. | 4 |
StatementInterface:: |
public | function | Returns the entire result set as a single associative array. | 4 |
StatementInterface:: |
public | function | Fetches the next row and returns it as an associative array. | 4 |
StatementInterface:: |
public | function | Returns an entire single column of a result set as an indexed array. | 4 |
StatementInterface:: |
public | function | Returns a single field from the next record of a result set. | 4 |
StatementInterface:: |
public | function | Fetches the next row and returns it as an object. | 3 |
StatementInterface:: |
public | function | Gets the query string of this statement. | 4 |
StatementInterface:: |
public | function | Returns the number of rows affected by the last SQL statement. | 4 |
StatementInterface:: |
public | function | Sets the default fetch mode for this statement. | 4 |