public function testGetIndexes()
 {
     // single column index
     $table = new \Phinx\Db\Table('table1', array(), $this->adapter);
     $table->addColumn('email', 'string')->addColumn('username', 'string')->addIndex('email')->addIndex(array('email', 'username'), array('unique' => true, 'name' => 'email_username'))->save();
     $indexes = $this->adapter->getIndexes('table1');
     $this->assertArrayHasKey('PK_table1', $indexes);
     $this->assertArrayHasKey('table1_email', $indexes);
     $this->assertArrayHasKey('email_username', $indexes);
     $this->assertEquals(array('id'), $indexes['PK_table1']['columns']);
     $this->assertEquals(array('email'), $indexes['table1_email']['columns']);
     $this->assertEquals(array('email', 'username'), $indexes['email_username']['columns']);
 }