public function testRemoveIndex() { // stub adapter $adapterStub = $this->getMock('\\Phinx\\Db\\Adapter\\MysqlAdapter', array(), array(array())); $adapterStub->expects($this->once())->method('dropIndex'); $table = new \Phinx\Db\Table('ntable', array(), $adapterStub); $table->removeIndex(array('email')); }