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/test/class/page/LC_Page_Admin_Products_ProductClass_Test.php

    r22206 r22567  
    3333 * @version $Id$ 
    3434 */ 
    35 class LC_Page_Admin_Products_ProductClass_Test extends PHPUnit_Framework_TestCase { 
    36  
    37     function setUp() { 
     35class LC_Page_Admin_Products_ProductClass_Test extends PHPUnit_Framework_TestCase  
     36{ 
     37 
     38    function setUp() 
     39    { 
    3840        $this->objQuery =& SC_Query::getSingletonInstance(); 
    3941        $this->objQuery->begin(); 
     
    4446    } 
    4547 
    46     function tearDown() { 
     48    function tearDown() 
     49    { 
    4750        $this->objQuery->rollback(); 
    4851        $this->objQuery = null; 
     
    5053    } 
    5154 
    52     function testInit() { 
     55    function testInit() 
     56    { 
    5357 
    5458        $this->assertEquals('products/product_class.tpl', 
     
    6266    } 
    6367 
    64     function testProcess() { 
     68    function testProcess() 
     69    { 
    6570        $this->objPage->process(); 
    6671    } 
    6772 
    68     function testCreateSearchParams() { 
     73    function testCreateSearchParams() 
     74    { 
    6975        $keys = array('search_product_id', 
    7076                      'search_product_code', 
     
    104110    } 
    105111 
    106     function testGetProductName() { 
     112    function testGetProductName() 
     113    { 
    107114        $product_id = 10000000; 
    108115        $this->expected = "テスト商品"; 
     
    114121    } 
    115122 
    116     function testGetProductsClass() { 
     123    function testGetProductsClass() 
     124    { 
    117125        $product_id = 10000000; 
    118126        $product_class_id = 10000; 
     
    141149    } 
    142150 
    143     function testGetAllClass() { 
     151    function testGetAllClass() 
     152    { 
    144153        $this->clearClass(); 
    145154        $this->setClass(1000, "大きさ", 1, array('S', 'M', 'L', 'LL')); 
     
    154163    } 
    155164 
    156     function testGetAllClassCategory規格1のみ() { 
     165    function testGetAllClassCategory規格1のみ() 
     166    { 
    157167        $this->clearClass(); 
    158168        $this->setClass(1000, "大きさ", 1, array('S', 'M', 'L', 'LL')); 
     
    182192    } 
    183193 
    184     function testGetAllClassCategory規格1と3() { 
     194    function testGetAllClassCategory規格1と3() 
     195    { 
    185196        $this->clearClass(); 
    186197        $this->setClass(1000, "大きさ", 1, array('S', 'M', 'L', 'LL')); 
     
    294305    } 
    295306 
    296     function testGetProductsClassAndClasscategory() { 
     307    function testGetProductsClassAndClasscategory() 
     308    { 
    297309        $product_id = 10000; 
    298310        $product_class_id = 1000; 
     
    331343    } 
    332344 
    333     function verify() { 
     345    function verify() 
     346    { 
    334347        $this->assertEquals($this->expected, $this->actual); 
    335348    } 
    336349 
    337     function setProduct($product_id, $name) { 
     350    function setProduct($product_id, $name) 
     351    { 
    338352        $val['product_id'] = $product_id; 
    339353        $val['name'] = $name; 
     
    343357    } 
    344358 
    345     function setProductsClass($product_id, $product_class_id, $class_combination_id = null) { 
     359    function setProductsClass($product_id, $product_class_id, $class_combination_id = null) 
     360    { 
    346361        $val['product_class_id'] = $product_class_id; 
    347362        $val['product_id'] = $product_id; 
     
    365380    } 
    366381 
    367     function clearClass() { 
     382    function clearClass() 
     383    { 
    368384        $this->objQuery->delete('dtb_class'); 
    369385        $this->objQuery->delete('dtb_classcategory'); 
     
    378394     * @param array $classcategory 規格分類名の配列 
    379395     */ 
    380     function setClass($class_id, $class_name, $rank, $classcategory) { 
     396    function setClass($class_id, $class_name, $rank, $classcategory) 
     397    { 
    381398        $val['class_id'] = $class_id; 
    382399        $val['name'] = $class_name; 
     
    397414} 
    398415 
    399 class LC_Page_Admin_Products_ProductClass_Mock extends LC_Page_Admin_Products_ProductClass { 
    400  
    401     function authorization() { 
     416class LC_Page_Admin_Products_ProductClass_Mock extends LC_Page_Admin_Products_ProductClass  
     417{ 
     418 
     419    function authorization() 
     420    { 
    402421        // quiet. 
    403422    } 
    404423 
    405     function assignView() { 
     424    function assignView() 
     425    { 
    406426        // quiet. 
    407427    } 
Note: See TracChangeset for help on using the changeset viewer.