Changeset 22567 for branches/version-2_12-dev/tests/class/replace
- Timestamp:
- 2013/02/18 19:09:54 (13 years ago)
- Location:
- branches/version-2_12-dev/tests/class/replace
- Files:
-
- 2 edited
-
SC_Display_Ex.php (modified) (3 diffs)
-
SC_Response_Ex.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/replace/SC_Display_Ex.php
r22128 r22567 4 4 * テスト用にSC_Displayクラスを変更してユーザエージェントを自在に設定できるようにしたクラスです。 5 5 */ 6 class SC_Display_Ex extends SC_Display { 6 class SC_Display_Ex extends SC_Display 7 { 7 8 8 9 /** テスト用に設定した端末種別 */ … … 15 16 * @return integer 端末種別ID 16 17 */ 17 public static function detectDevice($reset = FALSE) { 18 public static function detectDevice($reset = FALSE) 19 { 18 20 return self::$dummyDevice; 19 21 } … … 25 27 * @param $deviceType 端末種別ID 26 28 */ 27 public static function setDummyDevice($deviceType) { 29 public static function setDummyDevice($deviceType) 30 { 28 31 self::$dummyDevice = $deviceType; 29 32 } -
branches/version-2_12-dev/tests/class/replace/SC_Response_Ex.php
r22128 r22567 4 4 * テスト用にexitしないSC_Responseクラスです。 5 5 */ 6 class SC_Response_Ex extends SC_Response { 6 class SC_Response_Ex extends SC_Response 7 { 7 8 8 9 /** exitしたかどうかを保持するフラグ */ … … 14 15 * SC_Response::actionExit()をラップし、PHPをexitさせないようにします。 15 16 */ 16 function actionExit() { 17 function actionExit() 18 { 17 19 $this->exited = TRUE; 18 20 } … … 22 24 * また、リダイレクト先のパスを取得できるようにします。 23 25 */ 24 function sendRedirect($location, $arrQueryString = array(), $inheritQuerySring = false, $useSsl = null) { 26 function sendRedirect($location, $arrQueryString = array(), $inheritQuerySring = false, $useSsl = null) 27 { 25 28 $this->exited = TRUE; 26 29 $this->redirectPath = $location; … … 30 33 * actionExit()が呼ばれたかどうかを取得します。 31 34 */ 32 public function isExited() { 35 public function isExited() 36 { 33 37 return $this->exited; 34 38 } … … 37 41 * sendRedirect()で指定されたパスを取得します。 38 42 */ 39 public function getRedirectPath() { 43 public function getRedirectPath() 44 { 40 45 return $this->redirectPath; 41 46 }
Note: See TracChangeset
for help on using the changeset viewer.
