defmodule Phoenix.Router.OptionsTest do
  use ExUnit.Case, async: false
  alias Phoenix.Adapters.Cowboy
  alias Phoenix.Router.Options
  alias Phoenix.Router.OptionsTest.PhoenixOptionsTest

  setup_all do
    Mix.Config.persist(phoenix: [
      {Router, port: 71107},
      {Router2, port: "4000", proxy_port: "80"},
    ])

    defmodule Router do
      use Phoenix.Router
      get "/pages/:page", Pages, :show, as: :page
    end

    :ok
  end

  test "merge port number into options" do
    options = Options.merge([], [], Router, Cowboy)
    assert options[:port] == 71107
    assert options[:ssl] == false
  end

  test "converts port and proxy_prot from string to int" do
    options = Options.merge([], [], Router2, Cowboy)
    assert options[:port] == 4000
    assert options[:proxy_port] == 80
  end
end

defmodule Phoenix.Router.OptionsTest do
  use ExUnit.Case, async: false
  alias Phoenix.Adapters.Cowboy
  alias Phoenix.Router.Options

  setup_all do
    Mix.Config.persist(phoenix: [
      {Router, port: 71107},
      {Router2, port: "4000", proxy_port: "80"},
    ])

    defmodule Router do
      use Phoenix.Router
      get "/pages/:page", Pages, :show, as: :page
    end

    :ok
  end

  test "merge port number into options" do
    options = Options.merge([], [], Router, Cowboy)
    assert options[:port] == 71107
    assert options[:ssl] == false
  end

  test "converts port and proxy_prot from string to int" do
    options = Options.merge([], [], Router2, Cowboy)
    assert options[:port] == 4000
    assert options[:proxy_port] == 80
  end
end

Remove unused PhoenixOptionsTest alias that was causing error on test suite run
Remove unused PhoenixOptionsTest alias that was causing error on test suite run

CultivateHQ/phoenix,greyhwndz/phoenix,korobkov/phoenix,wsmoak/phoenix,elliotcm/phoenix,ephe-meral/phoenix,kevinold/phoenix,daytonn/phoenix,lancehalvorsen/phoenix,ericmj/phoenix,eksperimental/phoenix,phoenixframework/phoenix,seejee/phoenix,safi/phoenix,gjaldon/phoenix,ACPK/phoenix,switchflip/phoenix,ybur-yug/phoenix,CD1212/phoenix,iStefo/phoenix,mvidaurre/phoenix,mschae/phoenix,foxnewsnetwork/phoenix,trarbr/phoenix,jamilabreu/phoenix,keathley/phoenix,keathley/phoenix,doron2402/phoenix,SmartCasual/phoenix,Joe-noh/phoenix,optikfluffel/phoenix,0x00evil/phoenix,dmarkow/phoenix,rodrigues/phoenix,bsodmike/phoenix,seejee/phoenix,korobkov/phoenix,jeffkreeftmeijer/phoenix,vic/phoenix,kholbekj/phoenix,wicliff/phoenix,bitgamma/phoenix,rodrigues/phoenix,mobileoverlord/phoenix,pap/phoenix,dmarkow/phoenix,optikfluffel/phoenix,jasond-s/phoenix,vic/phoenix,mitchellhenke/phoenix,jxs/phoenix,javimolla/phoenix,Joe-noh/phoenix,Smulligan85/phoenix,lancehalvorsen/phoenix,bsmr-erlang/phoenix,hsavit1/phoenix,bdtomlin/phoenix,ybur-yug/phoenix,beni55/phoenix,cas27/phoenix,thegrubbsian/phoenix,StevenNunez/phoenix,nshafer/phoenix,andrewvy/phoenix,JHKennedy4/phoenix,ahmetabdi/phoenix,optikfluffel/phoenix,yonglehou/phoenix,paulcsmith/phoenix,evax/phoenix,linearregression/phoenix,michalmuskala/phoenix,justnoxx/phoenix,trarbr/phoenix,bsmr-erlang/phoenix,Dahoon/phoenix,tony612/phoenix,DavidAlphaFox/phoenix,fbjork/phoenix,0x00evil/phoenix,rafbgarcia/phoenix,henrik/phoenix,KazuCocoa/phoenix,milafrerichs/phoenix,maxnordlund/phoenix,cas27/phoenix,begleynk/phoenix,scrogson/phoenix,stevedomin/phoenix,kidaa/phoenix,jamilabreu/phoenix,ugisozols/phoenix,phoenixframework/phoenix,wsmoak/phoenix,VictorZeng/phoenix,Rumel/phoenix,michalmuskala/phoenix,rafbgarcia/phoenix,lono-devices/phoenix,Rumel/phoenix,GabrielNicolasAvellaneda/phoenix,mobileoverlord/phoenix,iStefo/phoenix,CultivateHQ/phoenix,nicrioux/phoenix,FND/phoenix,stevedomin/phoenix,ericmj/phoenix,omotenko/phoenix_auth,nshafer/phoenix,Smulligan85/phoenix,Eventacular/phoenix,manukall/phoenix,ephe-meral/phoenix,robomc/phoenix,hotvulcan/phoenix,andrewvy/phoenix,mvidaurre/phoenix,iguberman/phoenix,marcioj/phoenix,sadiqmmm/phoenix,robhurring/phoenix,arthurcolle/phoenix,romul/phoenix,stefania11/phoenix,kyledecot/phoenix,Gazler/phoenix,phoenixframework/phoenix,jwarwick/phoenix,mitchellhenke/phoenix,esbullington/phoenix-1,Ben-Evolently/phoenix,DavidAlphaFox/phoenix,manukall/phoenix,Kosmas/phoenix,sdnorm/phoenix,brucify/phoenix,nshafer/phoenix,jeffweiss/phoenix,rafbgarcia/phoenix,Kosmas/phoenix,doomspork/phoenix,xtity/simple_phoenix,yoavlt/phoenix,pap/phoenix,lono-devices/phoenix,0x00evil/phoenix,y-yagi/phoenix,gjaldon/phoenix,Gazler/phoenix,evax/phoenix,nickgartmann/phoenix,omotenko/phoenix_auth,jwarwick/phoenix,mschae/phoenix,eksperimental/phoenix,Fluxuous/phoenix