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_sfIsIntTest.php

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class SC_Utils_sfIsIntTest extends Common_TestCase 
    35 { 
     34class SC_Utils_sfIsIntTest extends Common_TestCase { 
    3635 
    37   protected function setUp() 
    38   { 
     36  protected function setUp() { 
    3937    parent::setUp(); 
    4038  } 
    4139 
    42   protected function tearDown() 
    43   { 
     40  protected function tearDown() { 
    4441    parent::tearDown(); 
    4542  } 
    4643 
    4744  ///////////////////////////////////////// 
    48   public function testSfIsInt_0バイト文字列の場合_FALSEが返る() 
    49   { 
     45  public function testSfIsInt_0バイト文字列の場合_FALSEが返る() { 
    5046    $this->expected = FALSE; 
    5147    $this->actual = SC_Utils::sfIsInt(''); 
     
    5450  } 
    5551 
    56   public function testSfIsInt_intの最大長より長い場合_FALSEが返る() 
    57   { 
     52  public function testSfIsInt_intの最大長より長い場合_FALSEが返る() { 
    5853    $this->expected = FALSE; 
    5954    $this->actual = SC_Utils::sfIsInt('10000000000'); 
     
    6257  } 
    6358 
    64   public function testSfIsInt_intの最大値ギリギリの場合_TRUEが返る() 
    65   { 
     59  public function testSfIsInt_intの最大値ギリギリの場合_TRUEが返る() { 
    6660    $this->expected = FALSE; 
    6761    $this->actual = SC_Utils::sfIsInt('2147483647'); 
     
    7064  } 
    7165 
    72   public function testSfIsInt_intの最大値を超える場合_FALSEが返る() 
    73   { 
     66  public function testSfIsInt_intの最大値を超える場合_FALSEが返る() { 
    7467    $this->expected = FALSE; 
    7568    $this->actual = SC_Utils::sfIsInt('2147483648'); 
     
    7871  } 
    7972 
    80   public function testSfIsInt_数値でない場合_FALSEが返る() 
    81   { 
     73  public function testSfIsInt_数値でない場合_FALSEが返る() { 
    8274    $this->expected = FALSE; 
    8375    $this->actual = SC_Utils::sfIsInt('HELLO123'); 
     
    8678  } 
    8779 
    88   public function testSfIsInt_正の整数の場合_TRUEが返る() 
    89   { 
     80  public function testSfIsInt_正の整数の場合_TRUEが返る() { 
    9081    $this->expected = TRUE; 
    9182    $this->actual = SC_Utils::sfIsInt('123456789'); 
     
    9687  // TODO 「整数かどうか」という関数名なのでここはFALSEになるべきでは? 
    9788  /** 
    98   public function testSfIsInt_正の小数の場合_FALSEが返る() 
    99   { 
     89  public function testSfIsInt_正の小数の場合_FALSEが返る() { 
    10090    $this->expected = FALSE; 
    10191    $this->actual = SC_Utils::sfIsInt('123.456'); 
     
    10595  */ 
    10696 
    107   public function testSfIsInt_負の整数の場合_TRUEが返る() 
    108   { 
     97  public function testSfIsInt_負の整数の場合_TRUEが返る() { 
    10998    $this->expected = TRUE; 
    11099    $this->actual = SC_Utils::sfIsInt('-12345678'); 
     
    115104  // TODO 文字列長でチェックしているので負の場合は範囲が小さくなっている 
    116105  /** 
    117   public function testSfIsInt_負の整数で桁数が最大の場合_TRUEが返る() 
    118   { 
     106  public function testSfIsInt_負の整数で桁数が最大の場合_TRUEが返る() { 
    119107    $this->expected = TRUE; 
    120108    $this->actual = SC_Utils::sfIsInt('-123456789'); 
Note: See TracChangeset for help on using the changeset viewer.