/** * @covers SphinxSearch\Indexer::rollback */ public function testRollback() { $this->mockAdapter->getDriver()->getConnection()->expects($this->once())->method('rollback'); $indexer = $this->indexer->rollback(); $this->assertInstanceOf('\\SphinxSearch\\Indexer', $indexer); }