FuelPHPのコントローラユニットテストで認証,Response::redirect(), Request::is_hmvc()を正しく機能させテストを動かす.Aspect Mock使用PHPUnitFuelPHPAspectMock FuelPHPのコントローラのユニットテストの書き方は fuelPHPでPHPUnitを使ったユニット・コントローラーテストをするには などに記事がありますが, それに加えて Authパッケージによる認証も含めたテスト Request::is_hmvc()が正しく動かない問題の解決 Response::redirect()で exitしてしまう問題の解決(上記記事にもありますが,別解を) テストだとAssetクラスのメソッドがうまく動かない問題の解決(上記記事にもありますが,これも別解を) をするための例を書こうと思います. 今回はAspect Mockを