assertTrue($result instanceof StatementInterface, 'Class implements expected interface'); $this->assertNull($result->fetchObject(), 'Null result returned.'); } /** * Tests that the empty result set iterates safely. */ public function testEmptyIteration() { $result = new StatementEmpty(); $this->assertSame(0, iterator_count($result), 'Empty result set should not iterate.'); } /** * Tests that the empty result set mass-fetches in an expected way. */ public function testEmptyFetchAll() { $result = new StatementEmpty(); $this->assertEquals($result->fetchAll(), [], 'Empty array returned from empty result set.'); } }