public function testCreateTableWithNamedIndexes()
 {
     $table = new \Phinx\Db\Table('table1', array(), $this->adapter);
     $table->addColumn('email', 'string')->addIndex('email', array('name' => 'myemailindex'))->save();
     $this->assertTrue($this->adapter->hasIndex('table1', array('email')));
     $this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_email')));
     $this->assertTrue($this->adapter->hasIndexByName('table1', 'myemailindex'));
 }