Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

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

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class SC_Utils_sfCutStringTest extends Common_TestCase { 
     34class SC_Utils_sfCutStringTest extends Common_TestCase 
     35{ 
    3536 
    3637 
    37   protected function setUp() { 
     38  protected function setUp() 
     39  { 
    3840    // parent::setUp(); 
    3941  } 
    4042 
    41   protected function tearDown() { 
     43  protected function tearDown() 
     44  { 
    4245    // parent::tearDown(); 
    4346  } 
    4447 
    4548  ///////////////////////////////////////// 
    46   public function testSfCutString_マルチバイト指定で指定長より2文字以上長い場合_指定長でカットされる() { 
     49  public function testSfCutString_マルチバイト指定で指定長より2文字以上長い場合_指定長でカットされる() 
     50  { 
    4751    $input = 'あいうえおABC、こんにちは。'; 
    4852    $this->expected = 'あいうえおABC、こんにち...'; 
     
    5256  } 
    5357 
    54   public function testSfCutString_マルチバイト指定で指定長より1文字長い場合_カットされない() { 
     58  public function testSfCutString_マルチバイト指定で指定長より1文字長い場合_カットされない() 
     59  { 
    5560    $input = 'あいうえおABC、こんにちは'; 
    5661    $this->expected = 'あいうえおABC、こんにちは'; 
     
    6065  } 
    6166 
    62   public function testSfCutString_マルチバイト指定で指定長以内の場合_カットされない() { 
     67  public function testSfCutString_マルチバイト指定で指定長以内の場合_カットされない() 
     68  { 
    6369    $input = 'あいうえおABC、こんにち'; 
    6470    $this->expected = 'あいうえおABC、こんにち'; 
     
    6874  } 
    6975 
    70   public function testSfCutString_1バイト指定で指定長より3文字以上長い場合_指定長でカットされる() { 
     76  public function testSfCutString_1バイト指定で指定長より3文字以上長い場合_指定長でカットされる() 
     77  { 
    7178    $input = 'hello, world!!'; 
    7279    $this->expected = 'hello, worl...'; 
     
    7683  } 
    7784 
    78   public function testSfCutString_1バイト指定で指定長より2文字長い場合_カットされない() { 
     85  public function testSfCutString_1バイト指定で指定長より2文字長い場合_カットされない() 
     86  { 
    7987    $input = 'hello, world!'; 
    8088    $this->expected = 'hello, world!'; 
     
    8492  } 
    8593 
    86   public function testSfCutString_1バイト指定で指定長より1文字長い場合_カットされない() { 
     94  public function testSfCutString_1バイト指定で指定長より1文字長い場合_カットされない() 
     95  { 
    8796    $input = 'hello, world'; 
    8897    $this->expected = 'hello, world'; 
     
    92101  } 
    93102 
    94   public function testSfCutString_1バイト指定で指定長以内の場合_カットされない() { 
     103  public function testSfCutString_1バイト指定で指定長以内の場合_カットされない() 
     104  { 
    95105    $input = 'hello, worl'; 
    96106    $this->expected = 'hello, worl'; 
     
    101111 
    102112  // [までの場合 
    103   public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる1() { 
     113  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる1() 
     114  { 
    104115    $input = "hello[emoji:135], world."; 
    105116    $this->expected = 'hello...'; 
     
    110121 
    111122  // ]の直前までの場合 
    112   public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる2() { 
     123  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる2() 
     124  { 
    113125    $input = "hello[emoji:135], world."; 
    114126    $this->expected = 'hello...'; 
     
    119131 
    120132  // 最初の絵文字の途中 
    121   public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる1() { 
     133  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる1() 
     134  { 
    122135    $input = "hello[emoji:100][emoji:20], world![emoji:10]"; 
    123136    $this->expected = 'hello...'; 
     
    128141 
    129142  // 2つめの絵文字の途中 
    130   public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる2() { 
     143  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる2() 
     144  { 
    131145    $input = "hello[emoji:100][emoji:20], world![emoji:10]"; 
    132146    $this->expected = 'hello[emoji:100]...'; 
     
    137151 
    138152  // 3つめの絵文字の途中 
    139   public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる3() { 
     153  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる3() 
     154  { 
    140155    $input = "hello[emoji:100][emoji:20], world![emoji:10]"; 
    141156    $this->expected = 'hello[emoji:100][emoji:20], wo...'; 
     
    146161 
    147162  // TODO 要確認 三点リーダ付けない場合は、lenと比較した方が良いのでは? 
    148   public function testSfCutString_三点リーダ付加指定がない場合_付加されない() { 
     163  public function testSfCutString_三点リーダ付加指定がない場合_付加されない() 
     164  { 
    149165    $input = 'hello, world'; 
    150166    $this->expected = 'hello'; 
Note: See TracChangeset for help on using the changeset viewer.