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

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

Location:
branches/version-2_12-dev/tests/class/SC_SiteSession
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_checkUniqIdTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_checkUniqIdTest extends Common_TestCase 
    28 { 
     27class SC_Session_checkUniqIdTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testCheckUniqId_POST値がない場合_True() 
    44     { 
     40    public function testCheckUniqId_POST値がない場合_True() { 
    4541        $_POST = null; 
    4642        $this->expected = true; 
     
    4945    } 
    5046     
    51     public function testCheckUniqId_POSTとセッションのUniqIDが一致する場合_True() 
    52     { 
     47    public function testCheckUniqId_POSTとセッションのUniqIDが一致する場合_True() { 
    5348        $_POST['uniqid'] = '1234567890'; 
    5449        $_SESSION['site']['uniqid'] = '1234567890'; 
     
    5954    } 
    6055     
    61     public function testCheckUniqId_POSTとセッションのUniqIDが一致しない場合_False() 
    62     { 
     56    public function testCheckUniqId_POSTとセッションのUniqIDが一致しない場合_False() { 
    6357        $_POST['uniqid'] = '0987654321'; 
    6458        $_SESSION['site']['uniqid'] = '1234567890'; 
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getUniqIdTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_getUniqIdTest extends Common_TestCase 
    28 { 
     27class SC_Session_getUniqIdTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Mock(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testGetUniqId_設定済みのユニークなID取得する() 
    44     { 
     40    public function testGetUniqId_設定済みのユニークなID取得する() { 
    4541        $_SESSION['site']['uniqid'] = '0987654321'; 
    4642        $this->expected = '0987654321'; 
     
    4945    } 
    5046     
    51     public function testGetUniqId_新たにユニークなID取得する() 
    52     { 
     47    public function testGetUniqId_新たにユニークなID取得する() { 
    5348        $_SESSION['site']['uniqid'] = ''; 
    5449        $this->expected = '1234567890'; 
     
    5853} 
    5954 
    60 class SC_SiteSession_Mock extends SC_SiteSession_Ex 
    61 { 
    62     function setUniqId() 
    63     { 
     55class SC_SiteSession_Mock extends SC_SiteSession_Ex { 
     56    function setUniqId() { 
    6457        $_SESSION['site']['uniqid'] = '1234567890'; 
    6558    } 
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getValueTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_getValueTest extends Common_TestCase 
    28 { 
     27class SC_Session_getValueTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testSetNowPage_セッションの値を取得する() 
    44     { 
     40    public function testSetNowPage_セッションの値を取得する() { 
    4541        $this->expected = $_SERVER['SCRIPT_NAME']; 
    4642        $this->actual = $this->objSiteSession->getValue('now_page'); 
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_isPrepageTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_isPrepageTest extends Common_TestCase 
    28 { 
     27class SC_Session_isPrepageTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testIsPrepage_sessionが空の場合_false() 
    44     { 
     40    public function testIsPrepage_sessionが空の場合_false() { 
    4541        $this->expected = false; 
    4642        $this->actual = $this->objSiteSession->isPrepage(); 
     
    4844    } 
    4945     
    50     public function testIsPrepage_prepageとnowpageが違う場合_false() 
    51     { 
     46    public function testIsPrepage_prepageとnowpageが違う場合_false() { 
    5247        $this->expected = false; 
    5348        $_SESSION['site']['pre_page'] = 'test.php'; 
     
    5651    } 
    5752     
    58     public function testIsPrepage_prepageとnowpageが同じの場合_true() 
    59     { 
     53    public function testIsPrepage_prepageとnowpageが同じの場合_true() { 
    6054        $this->expected = true; 
    6155        $_SESSION['site']['pre_page'] = $_SERVER['SCRIPT_NAME']; 
     
    6458    } 
    6559     
    66     public function testIsPrepage_pre_regist_successがtrueの場合_true() 
    67     { 
     60    public function testIsPrepage_pre_regist_successがtrueの場合_true() { 
    6861        $this->expected = true; 
    6962        $_SESSION['site']['pre_page'] = 'test.php'; 
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setNowPageTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_setNowPageTest extends Common_TestCase 
    28 { 
     27class SC_Session_setNowPageTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testSetNowPage_now_pageにパスを設定する() 
    44     { 
     40    public function testSetNowPage_now_pageにパスを設定する() { 
    4541        $this->expected = 'test.php'; 
    4642        $this->objSiteSession->setNowPage('test.php'); 
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setRegistFlagTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_setRegistFlagTest extends Common_TestCase 
    28 { 
     27class SC_Session_setRegistFlagTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testSetRegistFlag_TRUEがセットされる() 
    44     { 
     40    public function testSetRegistFlag_TRUEがセットされる() { 
    4541        $this->objSiteSession->setRegistFlag(); 
    4642        $this->assertTrue($_SESSION['site']['regist_success'],'登録成功フラグ'); 
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setUniqIdTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_setUniqIdTest extends Common_TestCase 
    28 { 
     27class SC_Session_setUniqIdTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testSetUniqId_ユニークなID設定する() 
    44     { 
     40    public function testSetUniqId_ユニークなID設定する() { 
    4541        $this->objSiteSession->setUniqId(); 
    4642        $this->assertNotEmpty($_SESSION['site']['uniqid'], 'ユニークID'); 
  • branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_unsetUniqIdTest.php

    r22567 r22796  
    2525require_once($HOME . "/tests/class/Common_TestCase.php"); 
    2626 
    27 class SC_Session_unsetUniqIdTest extends Common_TestCase 
    28 { 
     27class SC_Session_unsetUniqIdTest extends Common_TestCase { 
    2928 
    30     protected function setUp() 
    31     { 
     29    protected function setUp() { 
    3230        parent::setUp(); 
    3331        $this->objSiteSession = new SC_SiteSession_Ex(); 
    3432    } 
    3533 
    36     protected function tearDown() 
    37     { 
     34    protected function tearDown() { 
    3835        parent::tearDown(); 
    3936    } 
     
    4138    ///////////////////////////////////////// 
    4239 
    43     public function testUnsetUniqId_uniqIDを解除する() 
    44     { 
     40    public function testUnsetUniqId_uniqIDを解除する() { 
    4541        $_SESSION['site']['uniqid'] = '1234567890'; 
    4642        $this->objSiteSession->unsetUniqId(); 
Note: See TracChangeset for help on using the changeset viewer.