Changeset 23524
- Timestamp:
- 2014/06/04 23:21:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/tests/class/util/SC_Utils/SC_Utils_isInternalDomainTest.php
r22857 r23524 27 27 /** 28 28 * SC_Utils::sfIsInternalDomain()のテストクラス. 29 * HTTP_URL='http://test.local' という前提でテスト.30 29 * 31 30 * @author Hiroko Tamagawa … … 49 48 public function testsfIsInternalDomain_ドメインが一致する場合_trueが返る() 50 49 { 51 $url = 'http://test.local/html/index.php';52 $this->expected = TRUE;50 $url = HTTP_URL . 'index.php'; 51 $this->expected = true; 53 52 $this->actual = SC_Utils::sfIsInternalDomain($url); 54 53 … … 58 57 public function testsfIsInternalDomain_アンカーを含むURLの場合_trueが返る() 59 58 { 60 $url = 'http://test.local/html/index.php#hoge';61 $this->expected = TRUE;59 $url = HTTP_URL . 'index.php#hoge'; 60 $this->expected = true; 62 61 $this->actual = SC_Utils::sfIsInternalDomain($url); 63 62 … … 67 66 public function testsfIsInternalDomain_ドメインが一致しない場合_falseが返る() 68 67 { 69 $url = 'http://test.local.jp/html/index.php'; 70 $this->expected = TRUE; 68 // 一致しないようなURLにする 69 $url = 'http://unmatched.example.jp/html/index.php'; 70 71 $this->expected = false; 71 72 $this->actual = SC_Utils::sfIsInternalDomain($url); 72 73
Note: See TracChangeset
for help on using the changeset viewer.