Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

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

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class SC_Utils_sfCutStringTest extends Common_TestCase 
    35 { 
     34class SC_Utils_sfCutStringTest extends Common_TestCase { 
    3635 
    3736 
    38   protected function setUp() 
    39   { 
     37  protected function setUp() { 
    4038    // parent::setUp(); 
    4139  } 
    4240 
    43   protected function tearDown() 
    44   { 
     41  protected function tearDown() { 
    4542    // parent::tearDown(); 
    4643  } 
    4744 
    4845  ///////////////////////////////////////// 
    49   public function testSfCutString_マルチバイト指定で指定長より2文字以上長い場合_指定長でカットされる() 
    50   { 
     46  public function testSfCutString_マルチバイト指定で指定長より2文字以上長い場合_指定長でカットされる() { 
    5147    $input = 'あいうえおABC、こんにちは。'; 
    5248    $this->expected = 'あいうえおABC、こんにち...'; 
     
    5652  } 
    5753 
    58   public function testSfCutString_マルチバイト指定で指定長より1文字長い場合_カットされない() 
    59   { 
     54  public function testSfCutString_マルチバイト指定で指定長より1文字長い場合_カットされない() { 
    6055    $input = 'あいうえおABC、こんにちは'; 
    6156    $this->expected = 'あいうえおABC、こんにちは'; 
     
    6560  } 
    6661 
    67   public function testSfCutString_マルチバイト指定で指定長以内の場合_カットされない() 
    68   { 
     62  public function testSfCutString_マルチバイト指定で指定長以内の場合_カットされない() { 
    6963    $input = 'あいうえおABC、こんにち'; 
    7064    $this->expected = 'あいうえおABC、こんにち'; 
     
    7468  } 
    7569 
    76   public function testSfCutString_1バイト指定で指定長より3文字以上長い場合_指定長でカットされる() 
    77   { 
     70  public function testSfCutString_1バイト指定で指定長より3文字以上長い場合_指定長でカットされる() { 
    7871    $input = 'hello, world!!'; 
    7972    $this->expected = 'hello, worl...'; 
     
    8376  } 
    8477 
    85   public function testSfCutString_1バイト指定で指定長より2文字長い場合_カットされない() 
    86   { 
     78  public function testSfCutString_1バイト指定で指定長より2文字長い場合_カットされない() { 
    8779    $input = 'hello, world!'; 
    8880    $this->expected = 'hello, world!'; 
     
    9284  } 
    9385 
    94   public function testSfCutString_1バイト指定で指定長より1文字長い場合_カットされない() 
    95   { 
     86  public function testSfCutString_1バイト指定で指定長より1文字長い場合_カットされない() { 
    9687    $input = 'hello, world'; 
    9788    $this->expected = 'hello, world'; 
     
    10192  } 
    10293 
    103   public function testSfCutString_1バイト指定で指定長以内の場合_カットされない() 
    104   { 
     94  public function testSfCutString_1バイト指定で指定長以内の場合_カットされない() { 
    10595    $input = 'hello, worl'; 
    10696    $this->expected = 'hello, worl'; 
     
    111101 
    112102  // [までの場合 
    113   public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる1() 
    114   { 
     103  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる1() { 
    115104    $input = "hello[emoji:135], world."; 
    116105    $this->expected = 'hello...'; 
     
    121110 
    122111  // ]の直前までの場合 
    123   public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる2() 
    124   { 
     112  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる2() { 
    125113    $input = "hello[emoji:135], world."; 
    126114    $this->expected = 'hello...'; 
     
    131119 
    132120  // 最初の絵文字の途中 
    133   public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる1() 
    134   { 
     121  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる1() { 
    135122    $input = "hello[emoji:100][emoji:20], world![emoji:10]"; 
    136123    $this->expected = 'hello...'; 
     
    141128 
    142129  // 2つめの絵文字の途中 
    143   public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる2() 
    144   { 
     130  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる2() { 
    145131    $input = "hello[emoji:100][emoji:20], world![emoji:10]"; 
    146132    $this->expected = 'hello[emoji:100]...'; 
     
    151137 
    152138  // 3つめの絵文字の途中 
    153   public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる3() 
    154   { 
     139  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる3() { 
    155140    $input = "hello[emoji:100][emoji:20], world![emoji:10]"; 
    156141    $this->expected = 'hello[emoji:100][emoji:20], wo...'; 
     
    161146 
    162147  // TODO 要確認 三点リーダ付けない場合は、lenと比較した方が良いのでは? 
    163   public function testSfCutString_三点リーダ付加指定がない場合_付加されない() 
    164   { 
     148  public function testSfCutString_三点リーダ付加指定がない場合_付加されない() { 
    165149    $input = 'hello, world'; 
    166150    $this->expected = 'hello'; 
Note: See TracChangeset for help on using the changeset viewer.