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