Changeset 20841 for branches/version-2_11-dev/test
- Timestamp:
- 2011/04/14 20:14:50 (12 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:20840
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/class/helper/SC_Helper_Purchase.php sc_helper_purchase.p-20101020100530-jyaoa7ch9pdfjqzp-1
data/class/pages/admin/design/LC_Page_Admin_Design.php 15680@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design.php
data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php 15687@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_Bloc.php
data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php 15682@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fdesign%2FLC_Page_Admin_Design_MainEdit.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php 16530@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc.php
data/class/util/SC_Utils.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Futil%2FSC_Utils.php
test/class/util/SC_Utils_Test.php sc_utils_test.php-20100802013957-750m2yralg9cowkd-1
test/require.php require.php-20100726065552-t2b4u96mp8ikqvjf-1- bzr:mapping-version:
- v4
- bzr:merge:
ohkouchi@loop-az.jp-20110414095517-89r4pupac6y68bog- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20110414111446-hdoquxfro41iwypa
- bzr:revno:
- 3552
- bzr:revprop:branch-nick:
- branches/version-2_11-dev
- bzr:root:
- branches/version-2_11-dev
- bzr:text-revisions:
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php ohkouchi@loop-az.jp-20110414095517-89r4pupac6y68bog
data/class/util/SC_Utils.php ohkouchi@loop-az.jp-20110414095517-89r4pupac6y68bog
test/class/util/SC_Utils_Test.php ohkouchi@loop-az.jp-20110414095517-89r4pupac6y68bog
test/require.php ohkouchi@loop-az.jp-20110414095517-89r4pupac6y68bog- bzr:timestamp:
- 2011-04-14 20:14:46.348999977 +0900
- bzr:user-agent:
- bzr2.2.1+bzr-svn1.0.4
- svn:original-date:
- 2011-04-14T11:14:46.349000Z
- Location:
- branches/version-2_11-dev/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/test/class/util/SC_Utils_Test.php
r20764 r20841 24 24 // {{{ requires 25 25 require_once(realpath(dirname(__FILE__)) . '/../../require.php'); 26 require_once(realpath(dirname(__FILE__)) . '/../../../data/class/pages/LC_Page _Ex.php');26 require_once(realpath(dirname(__FILE__)) . '/../../../data/class/pages/LC_Page.php'); 27 27 28 28 /** … … 46 46 $url = "http://www.example.jp/admin/index.php"; 47 47 48 $expected = "http://www.example.jp /admin/index.php";48 $expected = "http://www.example.jp:/admin/index.php"; 49 49 $actual = SC_Utils::getRealURL($url); 50 50 … … 55 55 $url = "http://www.example.jp/admin/../index.php"; 56 56 57 $expected = "http://www.example.jp /index.php";57 $expected = "http://www.example.jp:/index.php"; 58 58 $actual = SC_Utils::getRealURL($url); 59 59 … … 64 64 $url = "http://www.example.jp/admin/..///index.php"; 65 65 66 $expected = "http://www.example.jp /index.php";66 $expected = "http://www.example.jp:/index.php"; 67 67 $actual = SC_Utils::getRealURL($url); 68 68 … … 73 73 $url = "http://www.example.jp/admin/././../index.php"; 74 74 75 $expected = "http://www.example.jp /index.php";75 $expected = "http://www.example.jp:/index.php"; 76 76 $actual = SC_Utils::getRealURL($url); 77 77 … … 118 118 $this->assertFalse(SC_Utils::isBlank($zero, false)); 119 119 } 120 121 function testIsAbsoluteRealPath() { 122 // for *NIX 123 if (strpos(PHP_OS, 'WIN') === false) { 124 $unix_absolute = '/usr/local'; 125 $this->assertTrue(SC_Utils::isAbsoluteRealPath($unix_absolute)); 126 127 $relative = '../foo/bar'; 128 $this->assertFalse(SC_Utils::isAbsoluteRealPath($relative)); 129 } 130 // for Win 131 else { 132 $win_absolute = 'C:\Windows\system32'; 133 $this->assertTrue(SC_Utils::isAbsoluteRealPath($win_absolute)); 134 135 $win_absolute = 'C:/Windows/system32'; 136 $this->assertTrue(SC_Utils::isAbsoluteRealPath($win_absolute)); 137 138 $relative = '..\\foo\\bar'; 139 $this->assertFalse(SC_Utils::isAbsoluteRealPath($relative)); 140 141 } 142 143 $empty = ''; 144 $this->assertFalse(SC_Utils::isAbsoluteRealPath($empty)); 145 } 120 146 } 121 147 ?> -
branches/version-2_11-dev/test/require.php
r20764 r20841 24 24 // {{{ requires 25 25 26 /** PHPUnit/Framework.php のパス(必ずフルパスで指定!) */ 27 require_once("/opt/local/lib/php/PHPUnit/Framework.php"); 28 26 /** PHPUnit が含まれる pear ライブラリのパス(必ずフルパスで指定!) */ 27 $pear_path = '/opt/local/lib/php'; 29 28 require_once(realpath(dirname(__FILE__)) . "/../html/require.php"); 29 set_include_path(get_include_path() . PATH_SEPARATOR . $pear_path); 30 30 ?>
Note: See TracChangeset
for help on using the changeset viewer.