Ignore:
Timestamp:
2013/01/03 19:18:38 (11 years ago)
Author:
shift_hiroko.tamagawa
Message:

#1977 SC_Utilsの単体テストを追加・修正

Location:
branches/version-2_12-dev/tests/class/util/SC_Utils
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_clearCompliedTemplateTest.php

    r22193 r22194  
    5454    Test_Utils::array_append($this->actual, MOBILE_COMPILE_REALDIR); 
    5555 
    56     $this->verify(); 
     56    $this->verify('コンパイル済みファイルの格納先の中身'); 
    5757  } 
    5858 
  • branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_copyDirectoryTest.php

    r22193 r22194  
    7171    Test_Utils::array_append($this->actual, Test_Utils::mapCols(SC_Helper_FileManager::sfGetFileList(self::$TMP_DIR . "/dst/dir20"), "file_name")); 
    7272     
    73     $this->verify(); 
     73    $this->verify('コピーされたファイル一覧'); 
    7474  } 
    7575 
     
    8989    $this->actual = array(); 
    9090     
    91     $this->verify(); 
     91    $this->verify('コピーされたファイル一覧'); 
    9292  } 
    9393 
     
    116116    Test_Utils::array_append($this->actual, Test_Utils::mapCols(SC_Helper_FileManager::sfGetFileList(self::$TMP_DIR . "/dst/dir20"), "file_name")); 
    117117     
    118     $this->verify(); 
     118    $this->verify('コピー先のファイル一覧'); 
    119119 
    120120  } 
     
    151151    $this->actual[] = $read_result; 
    152152 
    153     $this->verify(); 
     153    $this->verify('コピー先のファイル一覧'); 
    154154 
    155155  } 
  • branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isInternalDomainTest.php

    r22193 r22194  
    4545  ///////////////////////////////////////// 
    4646  public function testsfIsInternalDomain_ドメインが一致する場合_trueが返る() { 
     47    $url = 'http://test.local/html/index.php'; 
    4748    $this->expected = TRUE; 
    48     $this->actual = SC_Utils::sfIsInternalDomain('http://test.local/html/index.php'); 
     49    $this->actual = SC_Utils::sfIsInternalDomain($url); 
    4950 
    50     $this->verify(); 
     51    $this->verify($url); 
    5152  } 
    5253 
    5354  public function testsfIsInternalDomain_アンカーを含むURLの場合_trueが返る() { 
     55    $url = 'http://test.local/html/index.php#hoge'; 
    5456    $this->expected = TRUE; 
    55     $this->actual = SC_Utils::sfIsInternalDomain('http://test.local/html/index.php#hoge'); 
     57    $this->actual = SC_Utils::sfIsInternalDomain($url); 
    5658 
    57     $this->verify(); 
     59    $this->verify($url); 
    5860  } 
    5961 
    6062  public function testsfIsInternalDomain_ドメインが一致しない場合_falseが返る() { 
     63    $url = 'http://test.local.jp/html/index.php'; 
    6164    $this->expected = TRUE; 
    62     $this->actual = SC_Utils::sfIsInternalDomain('http://test.local.jp/html/index.php'); 
     65    $this->actual = SC_Utils::sfIsInternalDomain($url); 
    6366 
    64     $this->verify(); 
     67    $this->verify($url); 
    6568  } 
    6669 
  • branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_recursiveMkDirTest.php

    r22193 r22194  
    5656    $this->actual = substr(sprintf('%o', fileperms($path)), -4); 
    5757 
    58     $this->verify(); 
     58    $this->verify('作成したディレクトリのパーミッション'); 
    5959  } 
    6060 
     
    6666    $this->actual = substr(sprintf('%o', fileperms($path)), -4); 
    6767 
    68     $this->verify(); 
     68    $this->verify('作成したディレクトリのパーミッション'); 
    6969  } 
    7070 
Note: See TracChangeset for help on using the changeset viewer.