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