- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/test/class/page/LC_Page_Test.php
r22206 r22567 33 33 * @version $Id:LC_Page_Test.php 15116 2007-07-23 11:32:53Z nanasess $ 34 34 */ 35 class LC_Page_Test extends PHPUnit_Framework_TestCase { 35 class LC_Page_Test extends PHPUnit_Framework_TestCase 36 { 36 37 37 38 // }}} … … 47 48 */ 48 49 /* 49 function testSendRedirect() { 50 function testSendRedirect() 51 { 50 52 $objPage = new LC_Page(); 51 53 $result = $objPage->sendRedirect(HTTP_URL); … … 58 60 */ 59 61 /* 60 function testSendRedirectIsFailed() { 62 function testSendRedirectIsFailed() 63 { 61 64 $objPage = new LC_Page(); 62 65 $result = $objPage->sendRedirect("http://www.example.org"); … … 69 72 * LC_Page::getToken() のテストケース. 70 73 */ 71 function testGetToken() { 74 function testGetToken() 75 { 72 76 $objPage = new LC_Page(); 73 77 … … 85 89 * LC_Page::getLocation() のテストケース. 86 90 */ 87 function testGetLocation() { 91 function testGetLocation() 92 { 88 93 $objPage = new LC_Page(); 89 94 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); … … 99 104 * 絶対パス 100 105 */ 101 function testGetLocationWithFullPath() { 106 function testGetLocationWithFullPath() 107 { 102 108 $objPage = new LC_Page(); 103 109 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); … … 113 119 * QueryString 付与 114 120 */ 115 function testGetLocationWithQueryString() { 121 function testGetLocationWithQueryString() 122 { 116 123 $objPage = new LC_Page(); 117 124 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); … … 129 136 * HTTPS_URL 使用 130 137 */ 131 function testGetLocationUseSSL() { 138 function testGetLocationUseSSL() 139 { 132 140 $objPage = new LC_Page(); 133 141 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); … … 145 153 * DocumentRoot 指定 146 154 */ 147 function testGetLocationWithDocumentRoot() { 155 function testGetLocationWithDocumentRoot() 156 { 148 157 $objPage = new LC_Page(); 149 158 $documentRoot = realpath(dirname(__FILE__) . "/../../../html");
Note: See TracChangeset
for help on using the changeset viewer.