public function StatementWrapperLegacyTest::testMissingMethod in Drupal 9
Tests calling a non existing \PDOStatement method.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Database/ StatementWrapperLegacyTest.php, line 41
Class
- StatementWrapperLegacyTest
- Tests the deprecations of the StatementWrapper class.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testMissingMethod() {
$this
->expectException('\\BadMethodCallException');
$this->statement
->boo();
}