function EmptyStatementTest::testEmpty

Tests that the empty result set behaves as empty.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Database/EmptyStatementTest.php, line 29
Definition of Drupal\system\Tests\Database\EmptyStatementTest.

Class

EmptyStatementTest
Tests the empty pseudo-statement class.

Namespace

Drupal\system\Tests\Database

Code

function testEmpty() {
  $result = new StatementEmpty();
  $this
    ->assertTrue($result instanceof StatementInterface, 'Class implements expected interface');
  $this
    ->assertNull($result
    ->fetchObject(), 'Null result returned.');
}