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