function StatementWrapperLegacyTest::testMissingMethod

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\Database

Code

public function testMissingMethod() {
    $this->expectException('\\BadMethodCallException');
    $this->statement
        ->boo();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.