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