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