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