Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getProductsClassTest extends SC_Product_TestBase
-{
+class SC_Product_getProductsClassTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetProductsClass_商品規格IDから規格情報を返す()
-    {
+    public function testGetProductsClass_商品規格IDから規格情報を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_TestBase.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_TestBase.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_TestBase.php	(revision 22796)
@@ -6,13 +6,10 @@
  *
  */
-class SC_Product_TestBase extends Common_TestCase
-{
-    protected function setUp()
-    {
+class SC_Product_TestBase extends Common_TestCase {
+    protected function setUp() {
         parent::setUp();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -21,6 +18,5 @@
      * DBに商品クラス情報を設定します.
      */
-    protected function setUpProductClass()
-    {
+    protected function setUpProductClass() {
         $product_class = array(
             array(
@@ -63,6 +59,5 @@
 
         $this->objQuery->delete('dtb_products_class');
-        foreach ($product_class as $key => $item)
-{
+        foreach ($product_class as $key => $item) {
             $this->objQuery->insert('dtb_products_class', $item);
         }
@@ -74,6 +69,5 @@
      * DBに製品カテゴリ情報を登録します.
      */
-    protected function setUpClassCategory()
-    {
+    protected function setUpClassCategory() {
         $class_category = array(
             array(
@@ -102,6 +96,5 @@
      * DBに製品情報を登録します.
      */
-    protected function setUpProducts()
-    {
+    protected function setUpProducts() {
         $products = array(
             array(
@@ -163,6 +156,5 @@
      * DBに商品ステータス情報を登録します.
      */
-    protected function setUpProductStatus()
-    {
+    protected function setUpProductStatus() {
         $class_category = array(
             array(
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_findProductCountTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_findProductCountTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_findProductCountTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_findProductCountTest extends SC_Product_TestBase
-{
+class SC_Product_findProductCountTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testFindProductCount_すべての商品数を返す()
-    {
+    public function testFindProductCount_すべての商品数を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -35,6 +31,5 @@
     }
     
-    public function testFindProductCount_検索条件に一致する商品数を返す()
-    {
+    public function testFindProductCount_検索条件に一致する商品数を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassByQueryTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassByQueryTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassByQueryTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getProductsClassByQueryTest extends SC_Product_TestBase
-{
+class SC_Product_getProductsClassByQueryTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetProductsClassByQuery_クエリに該当する商品情報を返す()
-    {
+    public function testGetProductsClassByQuery_クエリに該当する商品情報を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_reduceStockTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_reduceStockTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_reduceStockTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_reduceStockTest extends SC_Product_TestBase
-{
+class SC_Product_reduceStockTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testReduceStock_減少数０はFalse()
-    {
+    public function testReduceStock_減少数０はFalse() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -36,6 +32,5 @@
     }
     
-    public function testReduceStock_減少数1はTrue()
-    {
+    public function testReduceStock_減少数1はTrue() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -50,6 +45,5 @@
     }
     
-    public function testReduceStock_在庫数をマイナスにする数はFalse()
-    {
+    public function testReduceStock_在庫数をマイナスにする数はFalse() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -65,6 +59,5 @@
     
         
-    public function testReduceStock_在庫数無限の場合はTrue()
-    {
+    public function testReduceStock_在庫数無限の場合はTrue() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_setProductsOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_setProductsOrderTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_setProductsOrderTest.php	(revision 22796)
@@ -6,21 +6,17 @@
  *
  */
-class SC_Product_setProductsOrderTest extends SC_Product_TestBase
-{
+class SC_Product_setProductsOrderTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
 
     /////////////////////////////////////////
-    public function testSetProductsOrder_デフォルト引数()
-    {
+    public function testSetProductsOrder_デフォルト引数() {
         $this->objProducts->setProductsOrder('name');
 
@@ -31,6 +27,5 @@
     }
 
-    public function testSetProductsOrder_引数指定()
-    {
+    public function testSetProductsOrder_引数指定() {
         $this->objProducts->setProductsOrder('name', 'dtb_products_class', 'DESC');
 
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_findProductIdsOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_findProductIdsOrderTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_findProductIdsOrderTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_findProductsOrderTest extends SC_Product_TestBase
-{
+class SC_Product_findProductsOrderTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testFindProductIdsOrder_商品ID降順()
-    {
+    public function testFindProductIdsOrder_商品ID降順() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -37,6 +33,5 @@
     }
 
-    public function testFindProductIdsOrder_商品名昇順()
-    {
+    public function testFindProductIdsOrder_商品名昇順() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -52,6 +47,5 @@
     }
     
-    public function testFindProductIdsOrder_arrOrderDataの設定による並び順()
-    {
+    public function testFindProductIdsOrder_arrOrderDataの設定による並び順() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getBuyLimitTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getBuyLimitTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getBuyLimitTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getBuyLimitTest extends SC_Product_TestBase
-{
+class SC_Product_getBuyLimitTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetBuyLimit_商品数無限の場合販売制限なし()
-    {
+    public function testGetBuyLimit_商品数無限の場合販売制限なし() {
         
         $product = array('stock_unlimited' => '1'
@@ -34,6 +30,5 @@
     }
     
-    public function testGetBuyLimit_商品販売数制限数を返す()
-    {
+    public function testGetBuyLimit_商品販売数制限数を返す() {
         
         $product = array('stock_unlimited' => '1'
@@ -46,6 +41,5 @@
     }
     
-    public function testGetBuyLimit_商品在庫数を制限として返す()
-    {
+    public function testGetBuyLimit_商品在庫数を制限として返す() {
         
         $product = array('stock_unlimited' => null
@@ -58,6 +52,5 @@
     }
 
-    public function testGetBuyLimit_販売制限数大なり在庫数なら在庫数を返す()
-    {
+    public function testGetBuyLimit_販売制限数大なり在庫数なら在庫数を返す() {
         
         $product = array('stock_unlimited' => null
@@ -70,6 +63,5 @@
     }
     
-    public function testGetBuyLimit_販売制限数少なり在庫数なら販売制限数()
-    {
+    public function testGetBuyLimit_販売制限数少なり在庫数なら販売制限数() {
         
         $product = array('stock_unlimited' => null
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_listsTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_listsTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_listsTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_listsTest extends SC_Product_TestBase
-{
+class SC_Product_listsTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testlists_商品一覧取得()
-    {
+    public function testlists_商品一覧取得() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getDetailAndProductsClassTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getDetailAndProductsClassTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getDetailAndProductsClassTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getDetailAndProductsClassTest extends SC_Product_TestBase
-{
+class SC_Product_getDetailAndProductsClassTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetDetailAndProductsClass_商品規格IDの商品情報と規格情報を返す()
-    {
+    public function testGetDetailAndProductsClass_商品規格IDの商品情報と規格情報を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -54,8 +50,8 @@
                 ,'del_flg' => '0'
                 ,'update_date' => $arrRet[0]
-                ,'price01_min_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price01_max_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price02_min_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price02_max_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
+                ,'price01_min_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price01_max_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price02_min_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price02_max_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
                 ,'maker_id' => null
                 ,'comment4' => null
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_setProductStatusTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_setProductStatusTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_setProductStatusTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_setProductStatusTest extends SC_Product_TestBase
-{
+class SC_Product_setProductStatusTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,12 +19,10 @@
     /////////////////////////////////////////
 
-    public function testSetProductStatus_登録した商品ステータスを返す()
-    {
+    public function testSetProductStatus_登録した商品ステータスを返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
         $this->setUpClassCategory();
         $this->setUpProductStatus();
-        $_SESSION['member_id'] = 1;
-         
+        
         $this->objProducts->setProductStatus('1001', array('2','3','4'));
 
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getDetailTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getDetailTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getDetailTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getDetailTest extends SC_Product_TestBase
-{
+class SC_Product_getDetailTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetDetail_商品IDの詳細情報を返す()
-    {
+    public function testGetDetail_商品IDの詳細情報を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -54,8 +50,8 @@
                 ,'del_flg' => '0'
                 ,'update_date' => $arrRet[0]
-                ,'price01_min_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price01_max_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price02_min_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price02_max_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
+                ,'price01_min_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price01_max_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price02_min_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price02_max_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
                 ,'maker_id' => null
                 ,'comment4' => null
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductStatusTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductStatusTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductStatusTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getProductStatusTest extends SC_Product_TestBase
-{
+class SC_Product_getProductStatusTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetProductStatus_商品IDなしは空の配列を返す()
-    {
+    public function testGetProductStatus_商品IDなしは空の配列を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -37,6 +33,5 @@
     }
     
-    public function testGetProductStatus_指定した商品IDの商品ステータスを返す()
-    {
+    public function testGetProductStatus_指定した商品IDの商品ステータスを返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassByProductIdsTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassByProductIdsTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassByProductIdsTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getProductsClassByProductIdsTest extends SC_Product_TestBase
-{
+class SC_Product_getProductsClassByProductIdsTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetProductsClassByProductIds_商品IDなしは空配列を返す()
-    {
+    public function testGetProductsClassByProductIds_商品IDなしは空配列を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -37,6 +33,5 @@
     }
     
-    public function testGetProductsClassByProductIds_指定の商品IDの情報を返す()
-    {
+    public function testGetProductsClassByProductIds_指定の商品IDの情報を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -78,6 +73,5 @@
     }
     
-    public function testGetProductsClassByProductIds_削除商品含む商品情報を返す()
-    {
+    public function testGetProductsClassByProductIds_削除商品含む商品情報を返す() {
         $this->setUpProductClass();
         $this->setUpProducts();
Index: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getListByProductIdsTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getListByProductIdsTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getListByProductIdsTest.php	(revision 22796)
@@ -6,15 +6,12 @@
  *
  */
-class SC_Product_getListsByProductIdsTest extends SC_Product_TestBase
-{
+class SC_Product_getListsByProductIdsTest extends SC_Product_TestBase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objProducts = new SC_Product_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -22,6 +19,5 @@
     /////////////////////////////////////////
 
-    public function testGetListByProductIds_商品ID指定がない場合は空配列()
-    {
+    public function testGetListByProductIds_商品ID指定がない場合は空配列() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -35,6 +31,5 @@
     }
     
-    public function testGetListByProductIds_指定の商品IDで情報を取得する()
-    {
+    public function testGetListByProductIds_指定の商品IDで情報を取得する() {
         $this->setUpProductClass();
         $this->setUpProducts();
@@ -69,8 +64,8 @@
                 ,'del_flg' => '0'
                 ,'update_date' => $arrRet[0]
-                ,'price01_min_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price01_max_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price02_min_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
-                ,'price02_max_inctax' => SC_Helper_DB_Ex::sfCalcIncTax('1500')
+                ,'price01_min_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price01_max_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price02_min_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
+                ,'price02_max_inctax' => SC_Helper_DB::sfCalcIncTax('1500')
             )
         );
Index: branches/version-2_12-dev/tests/class/Common_TestCase.php
===================================================================
--- branches/version-2_12-dev/tests/class/Common_TestCase.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/Common_TestCase.php	(revision 22796)
@@ -14,6 +14,5 @@
  *
  */
-class Common_TestCase extends PHPUnit_Framework_TestCase
-{
+class Common_TestCase extends PHPUnit_Framework_TestCase {
 
   /** SC_Query インスタンス */
@@ -25,12 +24,10 @@
   protected $actual;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     $this->objQuery = SC_Query_Ex::getSingletonInstance();
     $this->objQuery->begin();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     $this->objQuery->rollback();
     $this->objQuery = null;
@@ -41,6 +38,5 @@
    * 呼び出す前に、$expectedに期待値を、$actualに実際の値を導入してください。
    */
-  protected function verify($message = null)
-  {
+  protected function verify($message = null) {
     $this->assertEquals($this->expected, $this->actual, $message);
   }
@@ -54,6 +50,5 @@
    */
   /**
-  public function testExit()
-  {
+  public function testExit() {
     $resp = new SC_Response_Ex();
     $resp->actionExit();
@@ -69,6 +64,5 @@
    */
   /**
-  public function testDeviceType()
-  {
+  public function testDeviceType() {
     $this->expected = array(DEVICE_TYPE_MOBILE, DEVICE_TYPE_SMARTPHONE);
     $this->actual = array();
@@ -88,6 +82,5 @@
    */
   /**
-  public function testLoginState()
-  {
+  public function testLoginState() {
     $this->expected = array(FALSE, TRUE);
     $this->actual = array();
Index: branches/version-2_12-dev/tests/class/replace/SC_Response_Ex.php
===================================================================
--- branches/version-2_12-dev/tests/class/replace/SC_Response_Ex.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/replace/SC_Response_Ex.php	(revision 22796)
@@ -4,6 +4,5 @@
  * テスト用にexitしないSC_Responseクラスです。
  */
-class SC_Response_Ex extends SC_Response
-{
+class SC_Response_Ex extends SC_Response {
 
   /** exitしたかどうかを保持するフラグ */
@@ -15,6 +14,5 @@
    * SC_Response::actionExit()をラップし、PHPをexitさせないようにします。
    */
-  function actionExit()
-  {
+  function actionExit() {
     $this->exited = TRUE;
   }
@@ -24,6 +22,5 @@
    * また、リダイレクト先のパスを取得できるようにします。
    */
-  function sendRedirect($location, $arrQueryString = array(), $inheritQuerySring = false, $useSsl = null)
-  {
+  function sendRedirect($location, $arrQueryString = array(), $inheritQuerySring = false, $useSsl = null) {
     $this->exited = TRUE;
     $this->redirectPath = $location;
@@ -33,6 +30,5 @@
    * actionExit()が呼ばれたかどうかを取得します。
    */
-  public function isExited()
-  {
+  public function isExited() {
     return $this->exited;
   }
@@ -41,6 +37,5 @@
    * sendRedirect()で指定されたパスを取得します。 
    */
-  public function getRedirectPath()
-  {
+  public function getRedirectPath() {
     return $this->redirectPath;
   }
Index: branches/version-2_12-dev/tests/class/replace/SC_Display_Ex.php
===================================================================
--- branches/version-2_12-dev/tests/class/replace/SC_Display_Ex.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/replace/SC_Display_Ex.php	(revision 22796)
@@ -4,6 +4,5 @@
  * テスト用にSC_Displayクラスを変更してユーザエージェントを自在に設定できるようにしたクラスです。
  */
-class SC_Display_Ex extends SC_Display
-{
+class SC_Display_Ex extends SC_Display {
 
   /** テスト用に設定した端末種別 */
@@ -16,6 +15,5 @@
    * @return    integer 端末種別ID
    */
-  public static function detectDevice($reset = FALSE)
-  {
+  public static function detectDevice($reset = FALSE) {
     return self::$dummyDevice;
   }
@@ -27,6 +25,5 @@
    * @param     $deviceType 端末種別ID
    */
-  public static function setDummyDevice($deviceType)
-  {
+  public static function setDummyDevice($deviceType) {
     self::$dummyDevice = $deviceType;
   }
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setRegistFlagTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setRegistFlagTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setRegistFlagTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_setRegistFlagTest extends Common_TestCase
-{
+class SC_Session_setRegistFlagTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testSetRegistFlag_TRUEがセットされる()
-    {
+    public function testSetRegistFlag_TRUEがセットされる() {
         $this->objSiteSession->setRegistFlag();
         $this->assertTrue($_SESSION['site']['regist_success'],'登録成功フラグ');
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setUniqIdTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setUniqIdTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setUniqIdTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_setUniqIdTest extends Common_TestCase
-{
+class SC_Session_setUniqIdTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testSetUniqId_ユニークなID設定する()
-    {
+    public function testSetUniqId_ユニークなID設定する() {
         $this->objSiteSession->setUniqId();
         $this->assertNotEmpty($_SESSION['site']['uniqid'], 'ユニークID');
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_checkUniqIdTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_checkUniqIdTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_checkUniqIdTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_checkUniqIdTest extends Common_TestCase
-{
+class SC_Session_checkUniqIdTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testCheckUniqId_POST値がない場合_True()
-    {
+    public function testCheckUniqId_POST値がない場合_True() {
         $_POST = null;
         $this->expected = true;
@@ -49,6 +45,5 @@
     }
     
-    public function testCheckUniqId_POSTとセッションのUniqIDが一致する場合_True()
-    {
+    public function testCheckUniqId_POSTとセッションのUniqIDが一致する場合_True() {
         $_POST['uniqid'] = '1234567890';
         $_SESSION['site']['uniqid'] = '1234567890';
@@ -59,6 +54,5 @@
     }
     
-    public function testCheckUniqId_POSTとセッションのUniqIDが一致しない場合_False()
-    {
+    public function testCheckUniqId_POSTとセッションのUniqIDが一致しない場合_False() {
         $_POST['uniqid'] = '0987654321';
         $_SESSION['site']['uniqid'] = '1234567890';
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_unsetUniqIdTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_unsetUniqIdTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_unsetUniqIdTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_unsetUniqIdTest extends Common_TestCase
-{
+class SC_Session_unsetUniqIdTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testUnsetUniqId_uniqIDを解除する()
-    {
+    public function testUnsetUniqId_uniqIDを解除する() {
         $_SESSION['site']['uniqid'] = '1234567890';
         $this->objSiteSession->unsetUniqId();
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getUniqIdTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getUniqIdTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getUniqIdTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_getUniqIdTest extends Common_TestCase
-{
+class SC_Session_getUniqIdTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Mock();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetUniqId_設定済みのユニークなID取得する()
-    {
+    public function testGetUniqId_設定済みのユニークなID取得する() {
         $_SESSION['site']['uniqid'] = '0987654321';
         $this->expected = '0987654321';
@@ -49,6 +45,5 @@
     }
     
-    public function testGetUniqId_新たにユニークなID取得する()
-    {
+    public function testGetUniqId_新たにユニークなID取得する() {
         $_SESSION['site']['uniqid'] = '';
         $this->expected = '1234567890';
@@ -58,8 +53,6 @@
 }
 
-class SC_SiteSession_Mock extends SC_SiteSession_Ex
-{
-    function setUniqId()
-    {
+class SC_SiteSession_Mock extends SC_SiteSession_Ex {
+    function setUniqId() {
         $_SESSION['site']['uniqid'] = '1234567890';
     }
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getValueTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getValueTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_getValueTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_getValueTest extends Common_TestCase
-{
+class SC_Session_getValueTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testSetNowPage_セッションの値を取得する()
-    {
+    public function testSetNowPage_セッションの値を取得する() {
         $this->expected = $_SERVER['SCRIPT_NAME'];
         $this->actual = $this->objSiteSession->getValue('now_page');
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setNowPageTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setNowPageTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_setNowPageTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_setNowPageTest extends Common_TestCase
-{
+class SC_Session_setNowPageTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testSetNowPage_now_pageにパスを設定する()
-    {
+    public function testSetNowPage_now_pageにパスを設定する() {
         $this->expected = 'test.php';
         $this->objSiteSession->setNowPage('test.php');
Index: branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_isPrepageTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_isPrepageTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_SiteSession/SC_SiteSession_isPrepageTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Session_isPrepageTest extends Common_TestCase
-{
+class SC_Session_isPrepageTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objSiteSession = new SC_SiteSession_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testIsPrepage_sessionが空の場合_false()
-    {
+    public function testIsPrepage_sessionが空の場合_false() {
         $this->expected = false;
         $this->actual = $this->objSiteSession->isPrepage();
@@ -48,6 +44,5 @@
     }
     
-    public function testIsPrepage_prepageとnowpageが違う場合_false()
-    {
+    public function testIsPrepage_prepageとnowpageが違う場合_false() {
         $this->expected = false;
         $_SESSION['site']['pre_page'] = 'test.php';
@@ -56,6 +51,5 @@
     }
     
-    public function testIsPrepage_prepageとnowpageが同じの場合_true()
-    {
+    public function testIsPrepage_prepageとnowpageが同じの場合_true() {
         $this->expected = true;
         $_SESSION['site']['pre_page'] = $_SERVER['SCRIPT_NAME'];
@@ -64,6 +58,5 @@
     }
     
-    public function testIsPrepage_pre_regist_successがtrueの場合_true()
-    {
+    public function testIsPrepage_pre_regist_successがtrueの場合_true() {
         $this->expected = true;
         $_SESSION['site']['pre_page'] = 'test.php';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfUpDirNameTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfUpDirNameTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfUpDirNameTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfUpDirNameTest extends Common_TestCase
-{
+class SC_Utils_sfUpDirNameTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfUpDirName__1階層上のディレクトリ名が取得できる()
-  {
+  public function testSfUpDirName__1階層上のディレクトリ名が取得できる() {
     $_SERVER['SCRIPT_NAME'] = 'dir1/dir2/updir/current';
 
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetUnderChildrenArrayTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetUnderChildrenArrayTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetUnderChildrenArrayTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetUnderChildrenArrayTest extends Common_TestCase
-{
+class SC_Utils_sfGetUnderChildrenArrayTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetUnderChildrenArray__与えられた親IDを持つ要素だけが抽出される()
-  {
+  public function testSfGetUnderChildrenArray__与えられた親IDを持つ要素だけが抽出される() {
     $input_array = array(
       array('parent_id' => '1001', 'child_id' => '1001001'),
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetAddressTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetAddressTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetAddressTest.php	(revision 22796)
@@ -32,22 +32,18 @@
  * @version $Id$
  */
-class SC_Utils_sfGetAddressTest extends Common_TestCase
-{
+class SC_Utils_sfGetAddressTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpAddress();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function test_住所がヒットしない場合_空の配列が返る()
-  {
+  public function test_住所がヒットしない場合_空の配列が返る() {
     $this->expected = array();
     $this->actual = SC_Utils::sfGetAddress('9999999');
@@ -56,6 +52,5 @@
   }
 
-  public function test_住所が一件だけヒットする場合_住所データが取得できる()
-  {
+  public function test_住所が一件だけヒットする場合_住所データが取得できる() {
     $this->expected = array(
       array(
@@ -74,6 +69,5 @@
   // $data_list[0]を返した方が良いのでは?
   /**
-  public function test_住所が二件以上ヒットする場合_町名を消した住所データが取得できる()
-  {
+  public function test_住所が二件以上ヒットする場合_町名を消した住所データが取得できる() {
     $this->expected = array(
       array(
@@ -94,6 +88,5 @@
   */
 
-  public function test_住所に但し書きが含まれる場合_但し書きが消去される()
-  {
+  public function test_住所に但し書きが含まれる場合_但し書きが消去される() {
     $this->expected = array(
       array(
@@ -108,6 +101,5 @@
   }
 
-  public function test_住所に注意文言がある場合_町名が消去される()
-  {
+  public function test_住所に注意文言がある場合_町名が消去される() {
     $this->expected = array(
       array(
@@ -122,6 +114,5 @@
   }
 
-  public function test_住所に番地の説明が含まれる場合_町名が消去される()
-  {
+  public function test_住所に番地の説明が含まれる場合_町名が消去される() {
     $this->expected = array(
       array(
@@ -138,6 +129,5 @@
   //////////////////////////////////////////
 
-  protected function setUpAddress()
-  {
+  protected function setUpAddress() {
 
     $address = array(
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCheckedTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCheckedTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCheckedTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetCheckedTest extends Common_TestCase
-{
+class SC_Utils_sfGetCheckedTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetChecked_引数が一致する場合_チェック済みの文字列が返る()
-  {
+  public function testSfGetChecked_引数が一致する場合_チェック済みの文字列が返る() {
     $this->expected = 'checked="checked"';
     $this->actual = SC_Utils::sfGetChecked('1', '1');
@@ -55,6 +51,5 @@
   }
 
-  public function testSfGetChecked_引数が一致しない場合_0バイト文字列が返る()
-  {
+  public function testSfGetChecked_引数が一致しない場合_0バイト文字列が返る() {
     $this->expected = '';
     $this->actual = SC_Utils::sfGetChecked('2', '1');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetBrothersArrayTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetBrothersArrayTest.php	(revision 22796)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetBrothersArrayTest.php	(revision 22796)
@@ -0,0 +1,67 @@
+<?php
+
+$HOME = realpath(dirname(__FILE__)) . "/../../../..";
+require_once($HOME . "/tests/class/Common_TestCase.php");
+/*
+ * This file is part of EC-CUBE
+ *
+ * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+/**
+ * SC_Utils::sfGetBrothersArray()のテストクラス.
+ *
+ *
+ * @author Hiroko Tamagawa
+ * @version $Id$
+ */
+class SC_Utils_sfGetBrothersArrayTest extends Common_TestCase {
+
+
+  protected function setUp() {
+    // parent::setUp();
+  }
+
+  protected function tearDown() {
+    // parent::tearDown();
+  }
+
+  /////////////////////////////////////////
+  public function testSfGetBrothersArray__与えられたIDの兄弟要素だけが抽出される() {
+    $input_array = array(
+      array('parent_id' => '1001', 'child_id' => '1001001'),
+      array('parent_id' => '1002', 'child_id' => '1002001'),
+      array('parent_id' => '1002', 'child_id' => '1002002'),
+      array('parent_id' => '1003', 'child_id' => '1003001'),
+      array('parent_id' => '1004', 'child_id' => '1004001')
+    );
+    $this->expected = array('1002001', '1002002', '1004001');
+    $this->actual = SC_Utils::sfGetBrothersArray(
+      $input_array, 
+      'parent_id',
+      'child_id', 
+      array('1002001', '1004001')
+    );
+    $this->verify();
+  }
+
+  //////////////////////////////////////////
+
+}
+
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_repeatStrWithSeparatorTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_repeatStrWithSeparatorTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_repeatStrWithSeparatorTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Utils_repeatStrWithSeparatorTest extends Common_TestCase
-{
+class SC_Utils_repeatStrWithSeparatorTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testRepeatStrWithSeparator_反復回数が0回の場合_結果が0バイト文字列になる()
-  {
+  public function testRepeatStrWithSeparator_反復回数が0回の場合_結果が0バイト文字列になる() {
     $this->expected = '';
     $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 0, '#');
@@ -54,6 +50,5 @@
   }
 
-  public function testRepeatStrWithSeparator_反復回数が1回の場合_区切り文字が入らない()
-  {
+  public function testRepeatStrWithSeparator_反復回数が1回の場合_区切り文字が入らない() {
     $this->expected = 'ECサイト';
     $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 1, '#');
@@ -62,6 +57,5 @@
   }
 
-  public function testRepeatStrWithSeparator_反復回数が2回以上の場合_区切り文字が入って出力される()
-  {
+  public function testRepeatStrWithSeparator_反復回数が2回以上の場合_区切り文字が入って出力される() {
     $this->expected = 'ECサイト#ECサイト#ECサイト#ECサイト#ECサイト';
     $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 5, '#');
@@ -70,6 +64,5 @@
   }
 
-  public function testRepeatStrWithSeparator_区切り文字が未指定の場合_カンマ区切りとなる()
-  {
+  public function testRepeatStrWithSeparator_区切り文字が未指定の場合_カンマ区切りとなる() {
     $this->expected = 'ECサイト,ECサイト,ECサイト';
     $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 3);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTrimURLTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTrimURLTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTrimURLTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfTrimURLTest extends Common_TestCase
-{
+class SC_Utils_sfTrimURLTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfTrimURL_URLがスラッシュで終わる場合_スラッシュが取り除かれる()
-  {
+  public function testSfTrimURL_URLがスラッシュで終わる場合_スラッシュが取り除かれる() {
     $input = 'http://www.example.co.jp/';
     $this->expected = 'http://www.example.co.jp';
@@ -55,6 +51,5 @@
   }
 
-  public function testSfTrimURL_URL末尾にスラッシュがない場合_文字列に変化がない()
-  {
+  public function testSfTrimURL_URL末尾にスラッシュがない場合_文字列に変化がない() {
     $input = 'http://www.example.co.jp';
     $this->expected = $input;
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPrePointTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPrePointTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPrePointTest.php	(revision 22796)
@@ -34,21 +34,17 @@
  * @version $Id$
  */
-class SC_Utils_sfPrePointTest extends Common_TestCase
-{
+class SC_Utils_sfPrePointTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfPrePoint_四捨五入の設定の場合_四捨五入された値が返る()
-  {
+  public function testSfPrePoint_四捨五入の設定の場合_四捨五入された値が返る() {
     $rule = 1; // 四捨五入
 
@@ -59,6 +55,5 @@
   }
 
-  public function testSfPrePoint_切り捨ての設定の場合_切り捨てされた値が返る()
-  {
+  public function testSfPrePoint_切り捨ての設定の場合_切り捨てされた値が返る() {
     $rule = 2; // 切り捨て 
 
@@ -69,6 +64,5 @@
   }
 
-  public function testSfPrePoint_切り上げの設定の場合_切り上げされた値が返る()
-  {
+  public function testSfPrePoint_切り上げの設定の場合_切り上げされた値が返る() {
     $rule = 3; // 切り上げ
 
@@ -79,6 +73,5 @@
   }
 
-  public function testSfPrePoint_存在しない選択肢の場合_切り上げされた値が返る()
-  {
+  public function testSfPrePoint_存在しない選択肢の場合_切り上げされた値が返る() {
     $rule = 4; // 存在しない選択肢
 
@@ -89,6 +82,5 @@
   }
 
-  public function testSfPrePoint_丸め方法の指定がない場合_定数で指定された値が使われる()
-  {
+  public function testSfPrePoint_丸め方法の指定がない場合_定数で指定された値が使われる() {
     $this->expected = array(9, 9);
     $this->actual = array(
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isAbsoluteRealPathTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isAbsoluteRealPathTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isAbsoluteRealPathTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_Test extends Common_TestCase
-{
+class SC_Utils_Test extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testIsAbsoluteRealPath_絶対パスの場合_trueが返る()
-  {
+  public function testIsAbsoluteRealPath_絶対パスの場合_trueが返る() {
 
     if (strpos(PHP_OS, 'WIN')) {
@@ -61,6 +57,5 @@
   }
 
-  public function testIsAbsoluteRealPath_相対パスの場合_trueが返る()
-  {
+  public function testIsAbsoluteRealPath_相対パスの場合_trueが返る() {
 
     if (strpos(PHP_OS, 'WIN')) {
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfDispDBDateTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfDispDBDateTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfDispDBDateTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfDispDBDateTest extends Common_TestCase
-{
+class SC_Utils_sfDispDBDateTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfDispDBDate_年が指定されていない場合_0バイト文字列が返る()
-  {
+  public function testSfDispDBDate_年が指定されていない場合_0バイト文字列が返る() {
     $dbdate = '-01-23 01:12:24';
     
@@ -56,6 +52,5 @@
     $this->verify();
   }
-  public function testSfDispDBDate_月が指定されていない場合_0バイト文字列が返る()
-  {
+  public function testSfDispDBDate_月が指定されていない場合_0バイト文字列が返る() {
     $dbdate = '2012--23 01:12:24';
     
@@ -65,6 +60,5 @@
     $this->verify();
   }
-  public function testSfDispDBDate_日が指定されていない場合_0バイト文字列が返る()
-  {
+  public function testSfDispDBDate_日が指定されていない場合_0バイト文字列が返る() {
     $dbdate = '2012-01- 01:12:24';
     
@@ -74,6 +68,5 @@
     $this->verify();
   }
-  public function testSfDispDBDate_年月日すべて存在する場合_フォーマット済み文字列が返る()
-  {
+  public function testSfDispDBDate_年月日すべて存在する場合_フォーマット済み文字列が返る() {
     $dbdate = '2012-1-23 1:12:24';
     
@@ -83,6 +76,5 @@
     $this->verify();
   }
-  public function testSfDispDBDate_時刻表示フラグがOFFの場合_時刻なしのフォーマット済み文字列が返る()
-  {
+  public function testSfDispDBDate_時刻表示フラグがOFFの場合_時刻なしのフォーマット済み文字列が返る() {
     $dbdate = '2012-1-23 1:12:24';
     
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfDBDateToTimeTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfDBDateToTimeTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfDBDateToTimeTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfDBDatetoTimeTest extends Common_TestCase
-{
+class SC_Utils_sfDBDatetoTimeTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfDbDatetoTime_時刻にマイクロ秒が含まれている場合_マイクロ秒を無視して変換できる()
-  {
+  public function testSfDbDatetoTime_時刻にマイクロ秒が含まれている場合_マイクロ秒を無視して変換できる() {
     
     $this->expected = mktime(10, 20, 30, 10, 31, 2012);
@@ -56,6 +52,5 @@
   }
 
-  public function testSfDbDatetoTime_時刻にマイクロ秒が含まれていない場合_そのまま変換できる()
-  {
+  public function testSfDbDatetoTime_時刻にマイクロ秒が含まれていない場合_そのまま変換できる() {
     
     $this->expected = mktime(10, 20, 30, 10, 31, 2012);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_clearCompliedTemplateTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_clearCompliedTemplateTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_clearCompliedTemplateTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_clearCompliedTemplateTest extends Common_TestCase
-{
+class SC_Utils_clearCompliedTemplateTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function test__コンパイル済みのファイルを配置するディレクトリが空になる()
-  {
+  public function test__コンパイル済みのファイルを配置するディレクトリが空になる() {
     SC_Utils::clearCompliedTemplate();
 
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTermMonthTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTermMonthTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTermMonthTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfTermMonthTest extends Common_TestCase
-{
+class SC_Utils_sfTermMonthTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfTermMonth_締め日が月末より早い場合_設定した締め日の通りになる()
-  {
+  public function testSfTermMonth_締め日が月末より早い場合_設定した締め日の通りになる() {
     $this->expected = array('2012/9/16', '2012/10/15 23:59:59');
     $this->actual = SC_Utils::sfTermMonth(2012, 10, 15);
@@ -55,6 +51,5 @@
   }
 
-  public function testSfTermMonth_該当月の末日が締め日より早い場合_末日に合わせられる()
-  {
+  public function testSfTermMonth_該当月の末日が締め日より早い場合_末日に合わせられる() {
     $this->expected = array('2012/9/1', '2012/9/30 23:59:59');
     $this->actual = SC_Utils::sfTermMonth(2012, 9, 31);
@@ -63,6 +58,5 @@
   }
 
-  public function testSfTermMonth_前月の末日が締め日より早い場合_末日に合わせられる()
-  {
+  public function testSfTermMonth_前月の末日が締め日より早い場合_末日に合わせられる() {
     $this->expected = array('2012/10/1', '2012/10/31 23:59:59');
     $this->actual = SC_Utils::sfTermMonth(2012, 10, 31);
@@ -71,6 +65,5 @@
   }
 
-  public function testSfTermMonth_年をまたぐ場合_前月が前年十二月になる()
-  {
+  public function testSfTermMonth_年をまたぐ場合_前月が前年十二月になる() {
     $this->expected = array('2012/12/16', '2013/1/15 23:59:59');
     $this->actual = SC_Utils::sfTermMonth(2013, 1, 15);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_getRealURLTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_getRealURLTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_getRealURLTest.php	(revision 22796)
@@ -32,15 +32,12 @@
  * @version $Id$
  */
-class SC_Utils_getRealURLTest extends Common_TestCase
-{
+class SC_Utils_getRealURLTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
@@ -48,6 +45,5 @@
   /////////////////////////////////////////
   // TODO ポート番号のためのコロンが必ず入ってしまうのはOK?
-  public function testGetRealURL_親ディレクトリへの参照を含む場合_正しくパースできる()
-  {
+  public function testGetRealURL_親ディレクトリへの参照を含む場合_正しくパースできる() {
     $input = 'http://www.example.jp/aaa/../index.php';
     $this->expected = 'http://www.example.jp:/index.php';
@@ -57,6 +53,5 @@
   }
 
-  public function testGetRealURL_親ディレクトリへの参照を複数回含む場合_正しくパースできる()
-  {
+  public function testGetRealURL_親ディレクトリへの参照を複数回含む場合_正しくパースできる() {
     $input = 'http://www.example.jp/aaa/bbb/../../ccc/ddd/../index.php';
     $this->expected = 'http://www.example.jp:/ccc/index.php';
@@ -66,6 +61,5 @@
   }
 
-  public function testGetRealURL_カレントディレクトリへの参照を含む場合_正しくパースできる()
-  {
+  public function testGetRealURL_カレントディレクトリへの参照を含む場合_正しくパースできる() {
     $input = 'http://www.example.jp/aaa/./index.php';
     $this->expected = 'http://www.example.jp:/aaa/index.php';
@@ -75,6 +69,5 @@
   }
 
-  public function testGetRealURL_httpsの場合_正しくパースできる()
-  {
+  public function testGetRealURL_httpsの場合_正しくパースできる() {
     $input = 'https://www.example.jp/aaa/./index.php';
     $this->expected = 'https://www.example.jp:/aaa/index.php';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetHashString_authTypePlainTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetHashString_authTypePlainTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetHashString_authTypePlainTest.php	(revision 22796)
@@ -34,15 +34,12 @@
  * @version $Id$
  */
-class SC_Utils_sfGetHashString_authTypePlainTest extends Common_TestCase
-{
+class SC_Utils_sfGetHashString_authTypePlainTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
@@ -50,6 +47,5 @@
   /////////////////////////////////////////
   /**
-  public function testSfGetHashString_暗号化なしの設定になっている場合_文字列が変換されない()
-  {
+  public function testSfGetHashString_暗号化なしの設定になっている場合_文字列が変換されない() {
     $input = 'hello, world';
 
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfRmDupSlashTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfRmDupSlashTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfRmDupSlashTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfRmDupSlashTest extends Common_TestCase
-{
+class SC_Utils_sfRmDupSlashTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfRmDupSlash_非SSLの場合_スキーマ部分以外の重複スラッシュが1つになる()
-  {
+  public function testSfRmDupSlash_非SSLの場合_スキーマ部分以外の重複スラッシュが1つになる() {
     $input = 'http://www.example.co.jp///aaa//bb/co.php';
     $this->expected = 'http://www.example.co.jp/aaa/bb/co.php';
@@ -56,6 +52,5 @@
   }
 
-  public function testSfRmDupSlash_SSLの場合_スキーマ部分以外の重複スラッシュが1つになる()
-  {
+  public function testSfRmDupSlash_SSLの場合_スキーマ部分以外の重複スラッシュが1つになる() {
     $input = 'https://www.example.co.jp///aaa//bb/co.php';
     $this->expected = 'https://www.example.co.jp/aaa/bb/co.php';
@@ -65,6 +60,5 @@
   }
 
-  public function testSfRmDupSlash_上記以外の場合_すべての重複スラッシュが1つになる()
-  {
+  public function testSfRmDupSlash_上記以外の場合_すべての重複スラッシュが1つになる() {
     $input = 'hoge//www.example.co.jp///aaa//bb/co.php';
     $this->expected = 'hoge/www.example.co.jp/aaa/bb/co.php';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfNoImageMainTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfNoImageMainTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfNoImageMainTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfNoImageMainTest extends Common_TestCase
-{
+class SC_Utils_sfNoImageMainTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfNoImageMain_ファイル名が空の場合_デフォルトのファイル名が返る()
-  {
+  public function testSfNoImageMain_ファイル名が空の場合_デフォルトのファイル名が返る() {
     $this->expected = 'noimage_main.png';
     $this->actual = SC_Utils::sfNoImageMain('');
@@ -55,6 +51,5 @@
   }
 
-  public function testSfNoImageMain_ディレクトリが指定されている場合_そのディレクトリ以下でデフォルトのファイル名が返る()
-  {
+  public function testSfNoImageMain_ディレクトリが指定されている場合_そのディレクトリ以下でデフォルトのファイル名が返る() {
     $this->expected = 'aaa/bbb/noimage_main.png';
     $this->actual = SC_Utils::sfNoImageMain('aaa/bbb/');
@@ -63,6 +58,5 @@
   }
 
-  public function testSfNoImageMain_ファイル名が指定されている場合_指定されたファイル名が返る()
-  {
+  public function testSfNoImageMain_ファイル名が指定されている場合_指定されたファイル名が返る() {
     $this->expected = 'aaa/bbb/ccc.png';
     $this->actual = SC_Utils::sfNoImageMain('aaa/bbb/ccc.png');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_jsonDecodeTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_jsonDecodeTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_jsonDecodeTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_jsonDecodeTest extends Common_TestCase
-{
+class SC_Utils_jsonDecodeTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testJsonDecode__JSON形式にエンコードされた文字列からarrayに変換される()
-  {
+  public function testJsonDecode__JSON形式にエンコードされた文字列からarrayに変換される() {
     $input = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
 
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetHashString_authTypeHmacTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetHashString_authTypeHmacTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetHashString_authTypeHmacTest.php	(revision 22796)
@@ -34,21 +34,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetHashString_authTypeHmacTest extends Common_TestCase
-{
+class SC_Utils_sfGetHashString_authTypeHmacTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetHashString_暗号化ありの設定になっている場合_文字列が変換される()
-  {
+  public function testSfGetHashString_暗号化ありの設定になっている場合_文字列が変換される() {
     $input = 'hello, world';
     $salt = 'sample';
@@ -59,6 +55,5 @@
   }
 
-  public function testSfGetHashString_暗号化ありの設定になっていてsaltがない場合_文字列が変換される()
-  {
+  public function testSfGetHashString_暗号化ありの設定になっていてsaltがない場合_文字列が変換される() {
     $input = 'hello, world';
     $output = SC_Utils::sfGetHashString($input);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfSetErrorStyleTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfSetErrorStyleTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfSetErrorStyleTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfSetErrorStyleTest extends Common_TestCase
-{
+class SC_Utils_sfSetErrorStyleTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfSetErrorStyle__背景色変更用の文字列が返る()
-  {
+  public function testSfSetErrorStyle__背景色変更用の文字列が返る() {
     
     $this->expected = 'style="background-color:#ffe8e8"';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetEnabledTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetEnabledTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetEnabledTest.php	(revision 22796)
@@ -34,15 +34,12 @@
  * @version $Id$
  */
-class SC_Utils_sfGetEnabledTest extends Common_TestCase
-{
+class SC_Utils_sfGetEnabledTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
@@ -50,6 +47,5 @@
   /////////////////////////////////////////
   // TODO 要確認 実際には使われていない?
-  public function testSfGetEnabled_falseを指定した場合_無効化するための文字列が返る()
-  {
+  public function testSfGetEnabled_falseを指定した場合_無効化するための文字列が返る() {
     
     $this->expected = ' disabled="disabled"';
@@ -59,6 +55,5 @@
   }
 
-  public function testSfGetEnabled_trueを指定した場合_0バイト文字列が返る()
-  {
+  public function testSfGetEnabled_trueを指定した場合_0バイト文字列が返る() {
     
     $this->expected = '';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrKeyValueTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrKeyValueTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrKeyValueTest.php	(revision 22796)
@@ -32,6 +32,5 @@
  * @version $Id$
  */
-class SC_Utils_sfArrKeyValueTest extends Common_TestCase
-{
+class SC_Utils_sfArrKeyValueTest extends Common_TestCase {
 
   var $arrList;
@@ -39,6 +38,5 @@
   var $valuename;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
 
@@ -53,12 +51,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfArrKeyValue_最大長が配列より短い場合_最大長でカットされる()
-  {
+  public function testSfArrKeyValue_最大長が配列より短い場合_最大長でカットされる() {
     $len_max = 3;
 
@@ -73,6 +69,5 @@
   }
 
-  public function testSfArrKeyValue_最大長が指定されていない場合_全要素が出力される()
-  {
+  public function testSfArrKeyValue_最大長が指定されていない場合_全要素が出力される() {
     $this->expected = array(
       '1011' => '2001',
@@ -86,6 +81,5 @@
   }
 
-  public function testSfArrKeyValue_キーサイズが短い場合_キーサイズでカットされる()
-  {
+  public function testSfArrKeyValue_キーサイズが短い場合_キーサイズでカットされる() {
     $len_max = 5;
     $keysize = 1;
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTaxTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTaxTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTaxTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Utils_sfTaxTest extends Common_TestCase
-{
+class SC_Utils_sfTaxTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfTax_四捨五入の場合_四捨五入の結果になる()
-  {
+  public function testSfTax_四捨五入の場合_四捨五入の結果になる() {
     $this->expected = array(1, 2);
     $this->actual[0] = SC_Utils::sfTax(140, 1, 1); // 1:四捨五入
@@ -55,6 +51,5 @@
   }
 
-  public function testSfTax_切り捨ての場合_切り捨ての結果になる()
-  {
+  public function testSfTax_切り捨ての場合_切り捨ての結果になる() {
     $this->expected = array(2, 3);
     $this->actual[0] = SC_Utils::sfTax(140, 2, 2); // 2:切り捨て
@@ -64,6 +59,5 @@
   }
 
-  public function testSfTax_切り上げの場合_切り上げの結果になる()
-  {
+  public function testSfTax_切り上げの場合_切り上げの結果になる() {
     $this->expected = array(2, 2);
     $this->actual[0] = SC_Utils::sfTax(140, 1, 3); // 3:切り上げ
@@ -73,6 +67,5 @@
   }
 
-  public function testSfTax_それ以外の場合_切り上げの結果になる()
-  {
+  public function testSfTax_それ以外の場合_切り上げの結果になる() {
     $this->expected = array(2, 2);
     $this->actual[0] = SC_Utils::sfTax(140, 1, 4);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isAppInnerUrlTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isAppInnerUrlTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isAppInnerUrlTest.php	(revision 22796)
@@ -35,15 +35,12 @@
  * @version $Id$
  */
-class SC_Utils_isAppInnerUrlTest extends Common_TestCase
-{
+class SC_Utils_isAppInnerUrlTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
@@ -51,6 +48,5 @@
   /////////////////////////////////////////
   /**
-  public function testIsAppInnerUrl_非SSLかつアプリ内URLの場合_trueが返る()
-  {
+  public function testIsAppInnerUrl_非SSLかつアプリ内URLの場合_trueが返る() {
     $input = 'http://sample.eccube.jp/admin/';
     $this->expected = true;
@@ -60,6 +56,5 @@
   }
 
-  public function testIsAppInnerUrl_非SSLかつアプリ外URLの場合_falseが返る()
-  {
+  public function testIsAppInnerUrl_非SSLかつアプリ外URLの場合_falseが返る() {
     $input = 'http://outside.eccube.jp/admin/';
     $this->expected = false;
@@ -69,6 +64,5 @@
   }
 
-  public function testIsAppInnerUrl_SSLかつアプリ内URLの場合_trueが返る()
-  {
+  public function testIsAppInnerUrl_SSLかつアプリ内URLの場合_trueが返る() {
     $input = 'https://sample.eccube.jp/admin/';
     $this->expected = true;
@@ -78,6 +72,5 @@
   }
 
-  public function testIsAppInnerUrl_SSLかつアプリ外URLの場合_falseが返る()
-  {
+  public function testIsAppInnerUrl_SSLかつアプリ外URLの場合_falseが返る() {
     $input = 'https://outside.eccube.jp/admin/';
     $this->expected = false;
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_recursiveMkDirTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_recursiveMkDirTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_recursiveMkDirTest.php	(revision 22796)
@@ -32,11 +32,9 @@
  * @version $Id$
  */
-class SC_Utils_recursiveMkdirTest extends Common_TestCase
-{
+class SC_Utils_recursiveMkdirTest extends Common_TestCase {
 
   static $TMP_DIR;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     self::$TMP_DIR = realpath(dirname(__FILE__)) . "/../../../tmp";
     SC_Helper_FileManager::deleteFile(self::$TMP_DIR);
@@ -45,12 +43,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testRecursiveMkdir_パーミッションを指定した場合_指定のパーミッションでディレクトリが作られる()
-  {
+  public function testRecursiveMkdir_パーミッションを指定した場合_指定のパーミッションでディレクトリが作られる() {
     $path = realpath(dirname(__FILE__)) . "/../../../tmp/dir1/dir2/dir3/";
     $mode = 0755;
@@ -63,6 +59,5 @@
   }
 
-  public function testRecursiveMkdir_パーミッションを指定しない場合_0777でディレクトリが作られる()
-  {
+  public function testRecursiveMkdir_パーミッションを指定しない場合_0777でディレクトリが作られる() {
     $path = realpath(dirname(__FILE__)) . "/../../../tmp/dir1/dir2/dir3/";
 
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfSwapArrayTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfSwapArrayTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfSwapArrayTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfSwapArrayTest extends Common_TestCase
-{
+class SC_Utils_sfSwapArrayTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfSwapArray_カラム名ありの指定の場合_キーに名称が入る()
-  {
+  public function testSfSwapArray_カラム名ありの指定の場合_キーに名称が入る() {
     $input_array = array(
       array('id' => '1001', 'name' => 'name1001'),
@@ -63,6 +59,5 @@
   }
 
-  public function testSfSwapArray_カラム名なしの指定の場合_キーに名称が入らない()
-  {
+  public function testSfSwapArray_カラム名なしの指定の場合_キーに名称が入らない() {
     $input_array = array(
       array('id' => '1001', 'name' => 'name1001'),
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_arrayDefineIndexesTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_arrayDefineIndexesTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_arrayDefineIndexesTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_arrayDefineIndexesTest extends Common_TestCase
-{
+class SC_Utils_arrayDefineIndexesTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testArrayDefineIndexes_チェック対象のキーがすべて存在する場合_配列に変化がない()
-  {
+  public function testArrayDefineIndexes_チェック対象のキーがすべて存在する場合_配列に変化がない() {
     $input_array = array('apple' => 'りんご', 'banana' => 'バナナ', 'orange' => 'オレンジ');
     $defineIndexes = array('banana', 'orange');
@@ -58,6 +54,5 @@
   }
 
-  public function testArrayDefineIndexes_チェック対象のキーが一部存在しない場合_配列に追加される()
-  {
+  public function testArrayDefineIndexes_チェック対象のキーが一部存在しない場合_配列に追加される() {
     $input_array = array('apple' => 'りんご', 'banana' => 'バナナ', 'orange' => 'オレンジ');
     $defineIndexes = array('tomato', 'banana', 'kiwi');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrCombineTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrCombineTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrCombineTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfArrCombineTest extends Common_TestCase
-{
+class SC_Utils_sfArrCombineTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfArrCombine_入力の配列が空の場合_結果も空になる()
-  {
+  public function testSfArrCombine_入力の配列が空の場合_結果も空になる() {
     $keys = array();
     $values = array();
@@ -59,6 +55,5 @@
 
   // TODO 要確認　キーの方が短い場合はエラーで良いのでは？
-  public function testSfArrCombine_入力のキー配列の方が短い場合_余った値の配列の要素は無視される()
-  {
+  public function testSfArrCombine_入力のキー配列の方が短い場合_余った値の配列の要素は無視される() {
     $keys = array('apple', 'banana');
     $values = array('りんご', 'バナナ', 'オレンジ', '梨');
@@ -74,6 +69,5 @@
   }
 
-  public function testSfArrCombine_入力のキー配列の方が長い場合_余ったキーの配列の要素は空になる()
-  {
+  public function testSfArrCombine_入力のキー配列の方が長い場合_余ったキーの配列の要素は空になる() {
     $keys = array('apple', 'banana', 'orange', 'pear');
     $values = array('りんご', 'バナナ');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCommaListTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCommaListTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCommaListTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Utils_sfGetCommaListTest extends Common_TestCase
-{
+class SC_Utils_sfGetCommaListTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetCommaList_配列が空の場合_FALSEが返る()
-  {
+  public function testSfGetCommaList_配列が空の場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfGetCommaList(array());
@@ -54,6 +50,5 @@
   }
 
-  public function testSfGetCommaList_スペースフラグが立っている場合_スペース付きで連結される()
-  {
+  public function testSfGetCommaList_スペースフラグが立っている場合_スペース付きで連結される() {
     $this->expected = 'りんご, ミカン, バナナ';
     $this->actual = SC_Utils::sfGetCommaList(
@@ -65,6 +60,5 @@
   }
 
-  public function testSfGetCommaList_スペースフラグが倒れている場合_スペース付きで連結される()
-  {
+  public function testSfGetCommaList_スペースフラグが倒れている場合_スペース付きで連結される() {
     $this->expected = 'りんご,ミカン,バナナ';
     $this->actual = SC_Utils::sfGetCommaList(
@@ -77,6 +71,5 @@
 
   // TODO 要確認：arrpopの役割
-  public function testSfGetCommaList_除外リストが指定されている場合_スペース付きで連結される()
-  {
+  public function testSfGetCommaList_除外リストが指定されている場合_スペース付きで連結される() {
     $this->expected = 'りんご, バナナ';
     $this->actual = SC_Utils::sfGetCommaList(
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetErrorColorTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetErrorColorTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetErrorColorTest.php	(revision 22796)
@@ -32,15 +32,12 @@
  * @version $Id$
  */
-class SC_Utils_sfGetErrorColorTest extends Common_TestCase
-{
+class SC_Utils_sfGetErrorColorTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
@@ -48,6 +45,5 @@
   /////////////////////////////////////////
   // TODO 要確認 実際には使われていない?
-  public function testSfGetErrorColor_引数が空でない場合_背景色変更用の文字列が返る()
-  {
+  public function testSfGetErrorColor_引数が空でない場合_背景色変更用の文字列が返る() {
     
     $this->expected = 'background-color:#ffe8e8';
@@ -57,6 +53,5 @@
   }
 
-  public function testSfGetErrorColor_引数が空の場合_0バイト文字列が返る()
-  {
+  public function testSfGetErrorColor_引数が空の場合_0バイト文字列が返る() {
     
     $this->expected = '';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_encodeRFC3986Test.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_encodeRFC3986Test.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_encodeRFC3986Test.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_encodeRFC3986Test extends Common_TestCase
-{
+class SC_Utils_encodeRFC3986Test extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testEncodeRFC3986_チルダが含まれる場合_エンコードされない()
-  {
+  public function testEncodeRFC3986_チルダが含まれる場合_エンコードされない() {
     $input = 'http://www.example.co.jp/~';
     $this->expected = 'http%3A%2F%2Fwww.example.co.jp%2F~';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetUniqRandomIdTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetUniqRandomIdTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetUniqRandomIdTest.php	(revision 22796)
@@ -33,21 +33,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetUniqRandomIdTest extends Common_TestCase
-{
+class SC_Utils_sfGetUniqRandomIdTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function test_prefix指定が無い場合_21文字のランダムな文字列が生成される()
-  {
+  public function test_prefix指定が無い場合_21文字のランダムな文字列が生成される() {
     $output1 = SC_Utils::sfGetUniqRandomId();
     $output2 = SC_Utils::sfGetUniqRandomId();
@@ -58,6 +54,5 @@
   }
 
-  public function test_prefix指定がある場合_prefixのあとに21文字のランダムな文字列が生成される()
-  {
+  public function test_prefix指定がある場合_prefixのあとに21文字のランダムな文字列が生成される() {
     $output1 = SC_Utils::sfGetUniqRandomId('hello');
     $output2 = SC_Utils::sfGetUniqRandomId('hello');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsMatchHashPassword_authTypeHmacTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsMatchHashPassword_authTypeHmacTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsMatchHashPassword_authTypeHmacTest.php	(revision 22796)
@@ -34,21 +34,17 @@
  * @version $Id$
  */
-class SC_Utils_sfIsMatchHashPassword_authTypeHmacTest extends Common_TestCase
-{
+class SC_Utils_sfIsMatchHashPassword_authTypeHmacTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfIsMatchHashPassword_ハッシュ化後の文字列が一致する場合_trueが返る()
-  {
+  public function testSfIsMatchHashPassword_ハッシュ化後の文字列が一致する場合_trueが返る() {
     $pass = 'ec-cube';
     $salt = 'salt';
@@ -61,6 +57,5 @@
   }
 
-  public function testSfIsMatchHashPassword_ハッシュ化後の文字列が一致しない場合_falseが返る()
-  {
+  public function testSfIsMatchHashPassword_ハッシュ化後の文字列が一致しない場合_falseが返る() {
     $pass = 'ec-cube';
     $salt = 'salt';
@@ -73,6 +68,5 @@
   }
 
-  public function testSfIsMatchHashPassword_saltが未指定の場合_旧バージョンの暗号化で比較される()
-  {
+  public function testSfIsMatchHashPassword_saltが未指定の場合_旧バージョンの暗号化で比較される() {
     $pass = 'ec-cube';
     $hashpass = sha1($pass . ':' . AUTH_MAGIC);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrayIntersectKeysTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrayIntersectKeysTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfArrayIntersectKeysTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfArrayIntersectKeysTest extends Common_TestCase
-{
+class SC_Utils_sfArrayIntersectKeysTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfArrayIntersectKeys_指定キーに含まれるものがない場合_空の配列が返る()
-  {
+  public function testSfArrayIntersectKeys_指定キーに含まれるものがない場合_空の配列が返る() {
     $input_array = array('apple' => 'りんご', 'banana' => 'バナナ', 'orange' => 'オレンジ');
     $key_array = array('kiwi', 'tomato');
@@ -58,6 +54,5 @@
   }
 
-  public function testSfArrayIntersctKeys_指定キーに含まれるものがある場合_含まれるものだけが返る()
-  {
+  public function testSfArrayIntersctKeys_指定キーに含まれるものがある場合_含まれるものだけが返る() {
     $input_array = array('apple' => 'りんご', 'banana' => 'バナナ', 'orange' => 'オレンジ');
     $key_array = array('orange', 'apple');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsHTTPSTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsHTTPSTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsHTTPSTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfIsHTTPSTest extends Common_TestCase
-{
+class SC_Utils_sfIsHTTPSTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfIsHTTPS_環境変数にSSLを示す値が入っている場合_trueが返る()
-  {
+  public function testSfIsHTTPS_環境変数にSSLを示す値が入っている場合_trueが返る() {
     $_SERVER['HTTPS'] = 'on';
     $this->expected = true;
@@ -56,6 +52,5 @@
   }
 
-  public function testSfIsHTTPS_環境変数に非SSLを示す値が入っている場合_falseが返る()
-  {
+  public function testSfIsHTTPS_環境変数に非SSLを示す値が入っている場合_falseが返る() {
     $_SERVER['HTTPS'] = 'off';
     $this->expected = false;
@@ -65,6 +60,5 @@
   }
 
-  public function testSfIsHTTPS_環境変数に値が入っていない場合_falseが返る()
-  {
+  public function testSfIsHTTPS_環境変数に値が入っていない場合_falseが返る() {
     unset($_SERVER['HTTPS']);
     $this->expected = false;
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_jsonEncodeTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_jsonEncodeTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_jsonEncodeTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_jsonEncodeTest extends Common_TestCase
-{
+class SC_Utils_jsonEncodeTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testJsonEncode__JSON形式にエンコードされた文字列が返る()
-  {
+  public function testJsonEncode__JSON形式にエンコードされた文字列が返る() {
     $input = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
     $this->expected = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfErrorHeaderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfErrorHeaderTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfErrorHeaderTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfErrorHeaderTest extends Common_TestCase
-{
+class SC_Utils_sfErrorHeaderTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfErrorHeader_printフラグがONの場合_指定したメッセージが出力される()
-  {
+  public function testSfErrorHeader_printフラグがONの場合_指定したメッセージが出力される() {
     global $GLOBAL_ERR; 
     $this->expectOutputString($GLOBAL_ERR . '<div id="errorHeader">ERROR MESSAGE</div>');
@@ -54,6 +50,5 @@
   }
 
-  public function testSfErrorHeader_printフラグがOFFの場合_指定したメッセージがグローバル変数に格納される()
-  {
+  public function testSfErrorHeader_printフラグがOFFの場合_指定したメッセージがグローバル変数に格納される() {
     global $GLOBAL_ERR;
     $this->expectOutputString('');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetClassCatCountTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetClassCatCountTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetClassCatCountTest.php	(revision 22796)
@@ -32,22 +32,18 @@
  * @version $Id$
  */
-class SC_Utils_sfGetClassCatCountTest extends Common_TestCase
-{
+class SC_Utils_sfGetClassCatCountTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpClassCat();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetClassCatCount__規格分類の件数がIDごとに取得できる()
-  {
+  public function testSfGetClassCatCount__規格分類の件数がIDごとに取得できる() {
     
     $this->expected = array(
@@ -62,6 +58,5 @@
   //////////////////////////////////////////
 
-  protected function setUpClassCat()
-  {
+  protected function setUpClassCat() {
     $classes = array(
       array(
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetSearchPageMaxTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetSearchPageMaxTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetSearchPageMaxTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetSearchPageMaxTest extends Common_TestCase
-{
+class SC_Utils_sfGetSearchPageMaxTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetSearchPageMax_正の整数が指定されている場合_指定の値が返る()
-  {
+  public function testSfGetSearchPageMax_正の整数が指定されている場合_指定の値が返る() {
     
     $this->expected = 100;
@@ -56,6 +52,5 @@
   }
 
-  public function testSfGetSearchPageMax_正の小数が指定されている場合_整数に変換される()
-  {
+  public function testSfGetSearchPageMax_正の小数が指定されている場合_整数に変換される() {
     
     $this->expected = 99;
@@ -65,6 +60,5 @@
   }
 
-  public function testSfGetSearchPageMax_負の数が指定されている場合_デフォルト値が返る()
-  {
+  public function testSfGetSearchPageMax_負の数が指定されている場合_デフォルト値が返る() {
     
     $this->expected = SEARCH_PMAX;
@@ -74,6 +68,5 @@
   }
 
-  public function testSfGetSearchPageMax_指定がない場合_デフォルト値が返る()
-  {
+  public function testSfGetSearchPageMax_指定がない場合_デフォルト値が返る() {
     
     $this->expected = SEARCH_PMAX;
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCopyDirtest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCopyDirtest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCopyDirtest.php	(revision 22796)
@@ -32,11 +32,9 @@
  * @version $Id$
  */
-class SC_Utils_sfCopyDirTest extends Common_TestCase
-{
+class SC_Utils_sfCopyDirTest extends Common_TestCase {
 
   static $TMP_DIR;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
     self::$TMP_DIR = realpath(dirname(__FILE__)) . "/../../../tmp";
@@ -45,12 +43,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfCopyDir_ディレクトリでない場合_falseを返し何もしない()
-  {
+  public function testSfCopyDir_ディレクトリでない場合_falseを返し何もしない() {
     mkdir(self::$TMP_DIR . "/src", 0777, true);
     $fp = fopen(self::$TMP_DIR . "/src/test.txt", "w");
@@ -71,6 +67,5 @@
   }
 
-  public function testSfCopyDir_コピー先のディレクトリが存在しない場合_新たに作成する()
-  {
+  public function testSfCopyDir_コピー先のディレクトリが存在しない場合_新たに作成する() {
     mkdir(self::$TMP_DIR . "/src", 0777, true);
     $fp = fopen(self::$TMP_DIR . "/src/test.txt", "w");
@@ -94,6 +89,5 @@
   // TODO CVS以下のEntriesなどはコピーされないが、CVSという親ディレクトリはコピーされてしまう。
   // そもそも、CVSだけ特別扱いする意味がないような…
-  public function testSfCopyDir_コピー先のディレクトリが存在する場合_そのままコピーする()
-  {
+  public function testSfCopyDir_コピー先のディレクトリが存在する場合_そのままコピーする() {
     mkdir(self::$TMP_DIR . "/src", 0777, true);
     mkdir(self::$TMP_DIR . "/dst", 0777, true); // コピー先も作成しておく
@@ -136,6 +130,5 @@
   }
 
-  public function testSfCopyDir_上書きフラグがONの場合_同名ファイルが上書きされる()
-  {
+  public function testSfCopyDir_上書きフラグがONの場合_同名ファイルが上書きされる() {
     mkdir(self::$TMP_DIR . "/src", 0777, true);
     mkdir(self::$TMP_DIR . "/dst", 0777, true); // コピー先も作成しておく
@@ -166,6 +159,5 @@
   }
 
-  public function testSfCopyDir_上書きフラグがONかつ書き込み権限がない場合_同名ファイルが上書きされない()
-  {
+  public function testSfCopyDir_上書きフラグがONかつ書き込み権限がない場合_同名ファイルが上書きされない() {
     mkdir(self::$TMP_DIR . "/src", 0777, true);
     mkdir(self::$TMP_DIR . "/dst", 0777, true); // コピー先も作成しておく
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCalcIncTaxTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCalcIncTaxTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCalcIncTaxTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Utils_sfCalcIncTaxTest extends Common_TestCase
-{
+class SC_Utils_sfCalcIncTaxTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfCalcIncTax_四捨五入の場合_四捨五入の結果になる()
-  {
+  public function testSfCalcIncTax_四捨五入の場合_四捨五入の結果になる() {
     $this->expected = array(141, 152);
     $this->actual[0] = SC_Utils::sfCalcIncTax(140, 1, 1); // 1:四捨五入
@@ -55,6 +51,5 @@
   }
 
-  public function testSfCalcIncTax_切り捨ての場合_切り捨ての結果になる()
-  {
+  public function testSfCalcIncTax_切り捨ての場合_切り捨ての結果になる() {
     $this->expected = array(142, 153);
     $this->actual[0] = SC_Utils::sfCalcIncTax(140, 2, 2); // 2:切り捨て
@@ -64,6 +59,5 @@
   }
 
-  public function testSfCalcIncTax_切り上げの場合_切り上げの結果になる()
-  {
+  public function testSfCalcIncTax_切り上げの場合_切り上げの結果になる() {
     $this->expected = array(142, 152);
     $this->actual[0] = SC_Utils::sfCalcIncTax(140, 1, 3); // 3:切り上げ
@@ -73,6 +67,5 @@
   }
 
-  public function testSfCalcIncTax_それ以外の場合_切り上げの結果になる()
-  {
+  public function testSfCalcIncTax_それ以外の場合_切り上げの結果になる() {
     $this->expected = array(142, 152);
     $this->actual[0] = SC_Utils::sfCalcIncTax(140, 1, 4);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTrimTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTrimTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfTrimTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Utils_sfTrimTest extends Common_TestCase
-{
+class SC_Utils_sfTrimTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfTrim_文頭と途中にホワイトスペースがある場合_文頭だけが除去できる()
-  {
+  public function testSfTrim_文頭と途中にホワイトスペースがある場合_文頭だけが除去できる() {
     $this->expected = 'あ　い うえ' . chr(0x0D) . 'お';
     // 0x0A=CR, 0x0d=LF
@@ -55,6 +51,5 @@
   }
   
-  public function testSfTrim_途中と文末にホワイトスペースがある場合_文末だけが除去できる()
-  {
+  public function testSfTrim_途中と文末にホワイトスペースがある場合_文末だけが除去できる() {
     $this->expected = 'あ　い うえ' . chr(0x0D) . 'お';
     // 0x0A=CR, 0x0d=LF
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_getHash2ArrayTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_getHash2ArrayTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_getHash2ArrayTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_getHash2ArrayTest extends Common_TestCase
-{
+class SC_Utils_getHash2ArrayTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testGetHash2Array_必須キー指定がない場合_値のみの配列が返る()
-  {
+  public function testGetHash2Array_必須キー指定がない場合_値のみの配列が返る() {
     $input_array = array('apple' => 'りんご', 'banana' => 'バナナ', 'orange' => 'オレンジ');
     $this->expected = array('りんご', 'バナナ', 'オレンジ');
@@ -56,6 +52,5 @@
   }
 
-  public function testGetHash2Array_必須キー指定がある場合_指定キーの値のみの配列が返る()
-  {
+  public function testGetHash2Array_必須キー指定がある場合_指定キーの値のみの配列が返る() {
     $input_array = array('apple' => 'りんご', 'banana' => 'バナナ', 'orange' => 'オレンジ');
     $requires = array('banana', 'apple');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPrintRTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPrintRTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPrintRTest.php	(revision 22796)
@@ -32,15 +32,12 @@
  * @version $Id$
  */
-class SC_Utils_sfPrintRTest extends Common_TestCase
-{
+class SC_Utils_sfPrintRTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
@@ -49,6 +46,5 @@
   // TODO 環境により出力形式が異なるため、テスト不可(デバッグ用なので、テストしなくてもよさそう)
   /**
-  public function testSfPrintR__指定したオブジェクトの情報が出力される()
-  {
+  public function testSfPrintR__指定したオブジェクトの情報が出力される() {
     $output = '<div style="font-size: 12px;color: #00FF00;">' . "\n"
       . '<strong>**デバッグ中**</strong><br />' . "\n"
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfNoImageMainListTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfNoImageMainListTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfNoImageMainListTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfNoImageMainListTest extends Common_TestCase
-{
+class SC_Utils_sfNoImageMainListTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfNoImageMainList_ファイル名が空の場合_デフォルトのファイル名が返る()
-  {
+  public function testSfNoImageMainList_ファイル名が空の場合_デフォルトのファイル名が返る() {
     $this->expected = 'noimage_main_list.jpg';
     $this->actual = SC_Utils::sfNoImageMainList('');
@@ -55,6 +51,5 @@
   }
 
-  public function testSfNoImageMainList_ディレクトリが指定されている場合_そのディレクトリ以下でデフォルトのファイル名が返る()
-  {
+  public function testSfNoImageMainList_ディレクトリが指定されている場合_そのディレクトリ以下でデフォルトのファイル名が返る() {
     $this->expected = 'aaa/bbb/noimage_main_list.jpg';
     $this->actual = SC_Utils::sfNoImageMainList('aaa/bbb/');
@@ -63,6 +58,5 @@
   }
 
-  public function testSfNoImageMainList_ファイル名が指定されている場合_指定されたファイル名が返る()
-  {
+  public function testSfNoImageMainList_ファイル名が指定されている場合_指定されたファイル名が返る() {
     $this->expected = 'aaa/bbb/ccc.png';
     $this->actual = SC_Utils::sfNoImageMainList('aaa/bbb/ccc.png');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetProductClassIdTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetProductClassIdTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetProductClassIdTest.php	(revision 22796)
@@ -32,58 +32,26 @@
  * @version $Id$
  */
-class SC_Utils_sfGetProductClassIdTest extends Common_TestCase
-{
+class SC_Utils_sfGetProductClassIdTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpProductsClass();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetProductClassId_存在する製品IDのみを指定した場合_カテゴリ0の対応する製品クラスが取得できる()
-  {
+  public function testSfGetProductClassId_存在するIDを指定した場合_対応する製品クラスが取得できる() {
     
-    $this->expected = '2001';
-    $this->actual = SC_Utils::sfGetProductClassId('2001');
+    $this->expected = '1001';
+    $this->actual = SC_Utils::sfGetProductClassId('1001');
 
     $this->verify('取得した製品クラス');
   }
 
-  public function testSfGetProductClassId_存在する製品IDのみを指定してカテゴリ0の製品クラスが存在しなければ_nullが返る()
-  {
-    
-    $this->expected = null;
-    $this->actual = SC_Utils::sfGetProductClassId('1001');
-
-    $this->verify('取得結果が空');
-  }
-
-  public function testSfGetProductClassId_存在する製品IDとカテゴリIDを指定した場合_対応する製品クラスが取得できる()
-  {
-    
-    $this->expected = '1002';
-    $this->actual = SC_Utils::sfGetProductClassId('1001', '2');
-
-    $this->verify('取得した製品クラス');
-  }
-
-  public function testSfGetProductClassId_存在する製品IDと存在しないカテゴリIDを指定した場合_nullが返る()
-  {
-    
-    $this->expected = null;
-    $this->actual = SC_Utils::sfGetProductClassId('1001', '999');
-
-    $this->verify('取得結果が空');
-  }
-
-  public function testSfGetProductClassId_存在しない製品IDを指定した場合_nullが返る()
-  {
+  public function testSfGetProductClassId_存在しないIDを指定した場合_nullが返る() {
     $this->expected = null;
     $this->actual = SC_Utils::sfGetProductClassId('9999');
@@ -93,6 +61,5 @@
 
   //////////////////////////////////////////
-  protected function setUpProductsClass()
-  {
+  protected function setUpProductsClass() {
     $products_class = array(
       array(
@@ -110,5 +77,6 @@
         'creator_id' => '1',
         'update_date' => 'CURRENT_TIMESTAMP'
-      ),
+      )
+      /** 同じproduct_idが2つあるケースは現状failするのでいったんコメントアウト
       array(
         'product_class_id' => '1002',
@@ -119,9 +87,9 @@
         'update_date' => 'CURRENT_TIMESTAMP'
       )
+      */
     );
 
     $this->objQuery->delete('dtb_products_class');
-    foreach ($products_class as $item)
-{
+    foreach ($products_class as $item) {
       $this->objQuery->insert('dtb_products_class', $item);
     }
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsIntTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsIntTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsIntTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Utils_sfIsIntTest extends Common_TestCase
-{
+class SC_Utils_sfIsIntTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfIsInt_0バイト文字列の場合_FALSEが返る()
-  {
+  public function testSfIsInt_0バイト文字列の場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsInt('');
@@ -54,6 +50,5 @@
   }
 
-  public function testSfIsInt_intの最大長より長い場合_FALSEが返る()
-  {
+  public function testSfIsInt_intの最大長より長い場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsInt('10000000000');
@@ -62,6 +57,5 @@
   }
 
-  public function testSfIsInt_intの最大値ギリギリの場合_TRUEが返る()
-  {
+  public function testSfIsInt_intの最大値ギリギリの場合_TRUEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsInt('2147483647');
@@ -70,6 +64,5 @@
   }
 
-  public function testSfIsInt_intの最大値を超える場合_FALSEが返る()
-  {
+  public function testSfIsInt_intの最大値を超える場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsInt('2147483648');
@@ -78,6 +71,5 @@
   }
 
-  public function testSfIsInt_数値でない場合_FALSEが返る()
-  {
+  public function testSfIsInt_数値でない場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsInt('HELLO123');
@@ -86,6 +78,5 @@
   }
 
-  public function testSfIsInt_正の整数の場合_TRUEが返る()
-  {
+  public function testSfIsInt_正の整数の場合_TRUEが返る() {
     $this->expected = TRUE;
     $this->actual = SC_Utils::sfIsInt('123456789');
@@ -96,6 +87,5 @@
   // TODO 「整数かどうか」という関数名なのでここはFALSEになるべきでは？
   /**
-  public function testSfIsInt_正の小数の場合_FALSEが返る()
-  {
+  public function testSfIsInt_正の小数の場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsInt('123.456');
@@ -105,6 +95,5 @@
   */
 
-  public function testSfIsInt_負の整数の場合_TRUEが返る()
-  {
+  public function testSfIsInt_負の整数の場合_TRUEが返る() {
     $this->expected = TRUE;
     $this->actual = SC_Utils::sfIsInt('-12345678');
@@ -115,6 +104,5 @@
   // TODO 文字列長でチェックしているので負の場合は範囲が小さくなっている
   /**
-  public function testSfIsInt_負の整数で桁数が最大の場合_TRUEが返る()
-  {
+  public function testSfIsInt_負の整数で桁数が最大の場合_TRUEが返る() {
     $this->expected = TRUE;
     $this->actual = SC_Utils::sfIsInt('-123456789');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsMatchHashPassword_authTypePlainTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsMatchHashPassword_authTypePlainTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsMatchHashPassword_authTypePlainTest.php	(revision 22796)
@@ -34,15 +34,12 @@
  * @version $Id$
  */
-class SC_Utils_sfIsMatchHashPassword_authTypePlainTest extends Common_TestCase
-{
+class SC_Utils_sfIsMatchHashPassword_authTypePlainTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
@@ -50,6 +47,5 @@
   /////////////////////////////////////////
   /**
-  public function testSfIsMatchHashPassword_文字列が一致する場合_trueが返る()
-  {
+  public function testSfIsMatchHashPassword_文字列が一致する場合_trueが返る() {
     $pass = 'ec-cube';
     $hashpass = 'ec-cube';
@@ -61,6 +57,5 @@
   }
 
-  public function testSfIsMatchHashPassword_文字列が一致しない場合_falseが返る()
-  {
+  public function testSfIsMatchHashPassword_文字列が一致しない場合_falseが返る() {
     $pass = 'ec-cube';
     $hashpass = 'EC-cube';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCSVListTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCSVListTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetCSVListTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetCSVListTest extends Common_TestCase
-{
+class SC_Utils_sfGetCSVListTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetCSVList_配列が空の場合_falseが返る()
-  {
+  public function testSfGetCSVList_配列が空の場合_falseが返る() {
     
     $this->expected = FALSE;
@@ -56,6 +52,5 @@
   }
 
-  public function testSfGetCSVList_配列に要素が存在する場合_CSV形式に変換した文字列が返る()
-  {
+  public function testSfGetCSVList_配列に要素が存在する場合_CSV形式に変換した文字列が返る() {
     
     $this->expected = '"1つ目の要素","カンマを,含む要素","3つ目の要素"' . "\r\n";
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMakeHiddenArrayTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMakeHiddenArrayTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMakeHiddenArrayTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfMakeHiddenArrayest extends Common_TestCase
-{
+class SC_Utils_sfMakeHiddenArrayest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfMakeHiddenArray__多段配列が1次元配列に変換される()
-  {
+  public function testSfMakeHiddenArray__多段配列が1次元配列に変換される() {
     $input_array = array(
       'vegetable' => '野菜',
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isBlankTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isBlankTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isBlankTest.php	(revision 22796)
@@ -32,111 +32,92 @@
  * @version $Id$
  */
-class SC_Utils_isBlankTest extends Common_TestCase
-{
+class SC_Utils_isBlankTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testIsBlank_0バイト文字列の場合_trueが返る()
-  {
+  public function testIsBlank_0バイト文字列の場合_trueが返る() {
     $input = '';
     $this->assertTrue(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_全角スペースの場合_trueが返る()
-  {
+  public function testIsBlank_全角スペースの場合_trueが返る() {
     $input = '　';
     $this->assertTrue(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_greedy指定なしで全角スペースの場合_falseが返る()
-  {
+  public function testIsBlank_greedy指定なしで全角スペースの場合_falseが返る() {
     $input = '　';
     $this->assertFalse(SC_Utils::isBlank($input, false), $input);
   }
 
-  public function testIsBlank_空の配列の場合_trueが返る()
-  {
+  public function testIsBlank_空の配列の場合_trueが返る() {
     $input = array();
     $this->assertTrue(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_ネストした配列の場合_trueが返る()
-  {
+  public function testIsBlank_ネストした配列の場合_trueが返る() {
     $input = array(array(array()));
     $this->assertTrue(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_greedy指定なしでネストした配列の場合_falseが返る()
-  {
+  public function testIsBlank_greedy指定なしでネストした配列の場合_falseが返る() {
     $input = array(array(array()));
     $this->assertFalse(SC_Utils::isBlank($input, false), $input);
   }
 
-  public function testIsBlank_空でない配列の場合_falseが返る()
-  {
+  public function testIsBlank_空でない配列の場合_falseが返る() {
     $input = array(array(array('1')));
     $this->assertFalse(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_greedy指定なしで空でない配列の場合_falseが返る()
-  {
+  public function testIsBlank_greedy指定なしで空でない配列の場合_falseが返る() {
     $input = array(array(array('1')));
     $this->assertFalse(SC_Utils::isBlank($input, false), $input);
   }
 
-  public function testIsBlank_全角スペースと空白の組み合わせの場合_trueが返る()
-  {
+  public function testIsBlank_全角スペースと空白の組み合わせの場合_trueが返る() {
     $input = "　\n　";
     $this->assertTrue(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_greedy指定なしで全角スペースと空白の組み合わせの場合_falseが返る()
-  {
+  public function testIsBlank_greedy指定なしで全角スペースと空白の組み合わせの場合_falseが返る() {
     $input = "　\n　";
     $this->assertFalse(SC_Utils::isBlank($input, false), $input);
   }
 
-  public function testIsBlank_全角スペースと非空白の組み合わせの場合_falseが返る()
-  {
+  public function testIsBlank_全角スペースと非空白の組み合わせの場合_falseが返る() {
     $input = '　A　';
     $this->assertFalse(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_greedy指定なしで全角スペースと非空白の組み合わせの場合_falseが返る()
-  {
+  public function testIsBlank_greedy指定なしで全角スペースと非空白の組み合わせの場合_falseが返る() {
     $input = '　A　';
     $this->assertFalse(SC_Utils::isBlank($input, false), $input);
   }
 
-  public function testIsBlank_数値のゼロを入力した場合_falseが返る()
-  {
+  public function testIsBlank_数値のゼロを入力した場合_falseが返る() {
     $input = 0;
     $this->assertFalse(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_値が空の配列を入力した場合_trueが返る()
-  {
+  public function testIsBlank_値が空の配列を入力した場合_trueが返る() {
     $input = array("");
     $this->assertTrue(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_すべてのホワイトスペースを並べた場合_trueが返る()
-  {
+  public function testIsBlank_すべてのホワイトスペースを並べた場合_trueが返る() {
     $input = " \t　\n\r\x0B\0";
     $this->assertTrue(SC_Utils::isBlank($input), $input);
   }
 
-  public function testIsBlank_通常の文字が含まれている場合_falseが返る()
-  {
+  public function testIsBlank_通常の文字が含まれている場合_falseが返る() {
     $input = " AB \n\t";
     $this->assertFalse(SC_Utils::isBlank($input), $input);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfEncodeFileTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfEncodeFileTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfEncodeFileTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfEncodeFileTest extends Common_TestCase
-{
+class SC_Utils_sfEncodeFileTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfEncodeFile_ファイルが正常に開けた場合_ファイルがエンコードされ出力先のパスが取得できる()
-  {
+  public function testSfEncodeFile_ファイルが正常に開けた場合_ファイルがエンコードされ出力先のパスが取得できる() {
     $outdir = realpath(dirname(__FILE__)) . "/../../../tmp/enc_output/";
     SC_Helper_FileManager::deleteFile($outdir);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetAddPointTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetAddPointTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetAddPointTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetAddPointTest extends Common_TestCase
-{
+class SC_Utils_sfGetAddPointTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetAddPoint_計算結果が正になる場合_値がそのまま返る()
-  {
+  public function testSfGetAddPoint_計算結果が正になる場合_値がそのまま返る() {
     $totalpoint = 100;
     $use_point = 2000;
@@ -59,6 +55,5 @@
   }
 
-  public function testSfGetAddPoint_計算結果が負になる場合_0が返る()
-  {
+  public function testSfGetAddPoint_計算結果が負になる場合_0が返る() {
     $totalpoint = 70;
     $use_point = 2000;
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetTimestampTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetTimestampTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetTimestampTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfGetTimestampTest extends Common_TestCase
-{
+class SC_Utils_sfGetTimestampTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfGetTimestamp_年が設定されていない場合_0バイト文字列が返る()
-  {
+  public function testSfGetTimestamp_年が設定されていない場合_0バイト文字列が返る() {
     $year = '';
     $month = '10';
@@ -58,6 +54,5 @@
   }
 
-  public function testSfGetTimestamp_月が設定されていない場合_0バイト文字列が返る()
-  {
+  public function testSfGetTimestamp_月が設定されていない場合_0バイト文字列が返る() {
     $year = '2012';
     $month = '';
@@ -69,6 +64,5 @@
   }
 
-  public function testSfGetTimestamp_日が設定されていない場合_0バイト文字列が返る()
-  {
+  public function testSfGetTimestamp_日が設定されていない場合_0バイト文字列が返る() {
     $year = '1999';
     $month = '09';
@@ -80,6 +74,5 @@
   }
 
-  public function testSfGetTimestamp_年月日すべて設定されている場合_連結された文字列が返る()
-  {
+  public function testSfGetTimestamp_年月日すべて設定されている場合_連結された文字列が返る() {
     $year = '1999';
     $month = '09';
@@ -92,6 +85,5 @@
   }
 
-  public function testSfGetTimestamp_最終時刻フラグがONの場合_時刻が深夜のものになる()
-  {
+  public function testSfGetTimestamp_最終時刻フラグがONの場合_時刻が深夜のものになる() {
     $year = '1999';
     $month = '09';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPassLenTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPassLenTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfPassLenTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_getSfPassLenTest extends Common_TestCase
-{
+class SC_Utils_getSfPassLenTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfPassLen_入力が0の場合_0バイト文字列が返る()
-  {
+  public function testSfPassLen_入力が0の場合_0バイト文字列が返る() {
     $input = '';
     $this->expected = '';
@@ -56,6 +52,5 @@
   }
 
-  public function testSfPassLen_入力が正の数の場合_入力と同じ文字数のアスタリスクが返る()
-  {
+  public function testSfPassLen_入力が正の数の場合_入力と同じ文字数のアスタリスクが返る() {
     $input = 17;
     $this->expected = '*****************';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMbConvertEncodingTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMbConvertEncodingTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMbConvertEncodingTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfMbConvertEncodingTest extends Common_TestCase
-{
+class SC_Utils_sfMbConvertEncodingTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfMbConvertEncoding_MS932の場合_エラーが起きない()
-  {
+  public function testSfMbConvertEncoding_MS932の場合_エラーが起きない() {
     $input = 'あいうえお、今日は良い天気です。';
     $encode = 'MS932';
@@ -55,6 +51,5 @@
   }
 
-  public function testSfMbConvertEncoding_UTF8の場合_エラーが起きない()
-  {
+  public function testSfMbConvertEncoding_UTF8の場合_エラーが起きない() {
     $input = 'あいうえお、今日は良い天気です。';
     $encode = 'UTF8';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_copyDirectoryTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_copyDirectoryTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_copyDirectoryTest.php	(revision 22796)
@@ -32,11 +32,9 @@
  * @version $Id$
  */
-class SC_Utils_copyDirectoryTest extends Common_TestCase
-{
+class SC_Utils_copyDirectoryTest extends Common_TestCase {
 
   static $TMP_DIR;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
     self::$TMP_DIR = realpath(dirname(__FILE__)) . "/../../../tmp";
@@ -45,12 +43,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testCopyDirectory_存在するパスの場合_指定したパス以下が再帰的にコピーされる()
-  {
+  public function testCopyDirectory_存在するパスの場合_指定したパス以下が再帰的にコピーされる() {
     /**
      * tests/tmp/src
@@ -78,6 +74,5 @@
   }
 
-  public function testCopyDirectory_存在しないパスの場合_何も起こらない()
-  {
+  public function testCopyDirectory_存在しないパスの場合_何も起こらない() {
     /**
      * tests/tmp/src
@@ -97,6 +92,5 @@
   }
 
-  public function testCopyDirectory_コピー先のディレクトリが元々存在する場合_上書きされる()
-  {
+  public function testCopyDirectory_コピー先のディレクトリが元々存在する場合_上書きされる() {
     /**
      * tests/tmp/src
@@ -126,6 +120,5 @@
   }
 
-  public function testCopyDirectory_コピー先のファイルが元々存在する場合_上書きされる()
-  {
+  public function testCopyDirectory_コピー先のファイルが元々存在する場合_上書きされる() {
     /**
      * tests/tmp/src
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetRandomStringTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetRandomStringTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetRandomStringTest.php	(revision 22796)
@@ -32,14 +32,11 @@
  * @version $Id$
  */
-class SC_Utils_sfGetRandomStringTest extends Common_TestCase
-{
+class SC_Utils_sfGetRandomStringTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
@@ -47,6 +44,5 @@
   /////////////////////////////////////////
   // ランダムな文字列取得なので、文字列長のみ確認します。
-  public function testSfGetRandomString_文字列長未指定の場合_長さ1の文字列が取得できる()
-  {
+  public function testSfGetRandomString_文字列長未指定の場合_長さ1の文字列が取得できる() {
     $this->expected = 1;
     $this->actual = strlen(SC_Utils::sfGetRandomString());
@@ -55,6 +51,5 @@
   }
 
-  public function testSfGetRandomString_文字列長指定ありの場合_指定した長さの文字列が取得できる()
-  {
+  public function testSfGetRandomString_文字列長指定ありの場合_指定した長さの文字列が取得できる() {
     $this->expected = 10;
     $this->actual = strlen(SC_Utils::sfGetRandomString(10));
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isInternalDomainTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isInternalDomainTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_isInternalDomainTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfIsInternalDomainTest extends Common_TestCase
-{
+class SC_Utils_sfIsInternalDomainTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testsfIsInternalDomain_ドメインが一致する場合_trueが返る()
-  {
+  public function testsfIsInternalDomain_ドメインが一致する場合_trueが返る() {
     $url = 'http://test.local/html/index.php';
     $this->expected = TRUE;
@@ -56,6 +52,5 @@
   }
 
-  public function testsfIsInternalDomain_アンカーを含むURLの場合_trueが返る()
-  {
+  public function testsfIsInternalDomain_アンカーを含むURLの場合_trueが返る() {
     $url = 'http://test.local/html/index.php#hoge';
     $this->expected = TRUE;
@@ -65,6 +60,5 @@
   }
 
-  public function testsfIsInternalDomain_ドメインが一致しない場合_falseが返る()
-  {
+  public function testsfIsInternalDomain_ドメインが一致しない場合_falseが返る() {
     $url = 'http://test.local.jp/html/index.php';
     $this->expected = TRUE;
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsSucceessTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsSucceessTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsSucceessTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfIsSuccessTest extends Common_TestCase
-{
+class SC_Utils_sfIsSuccessTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfIsSuccess_認証に失敗している場合_falseが返る()
-  {
+  public function testSfIsSuccess_認証に失敗している場合_falseが返る() {
     $objSess = new SC_Session_Mock();
     $objSess->is_success = SUCCESS + 1;
@@ -58,6 +54,5 @@
   }
 
-  public function testSfIsSuccess_認証成功でリファラがない場合_trueが返る()
-  {
+  public function testSfIsSuccess_認証成功でリファラがない場合_trueが返る() {
     $objSess = new SC_Session_Mock();
     $objSess->is_success = SUCCESS;
@@ -70,6 +65,5 @@
 
   // TODO 正規のドメインであることは確認しているが、管理画面からというのはチェックしていないのでは？
-  public function testSfIsSuccess_認証成功でリファラが正しい場合_trueが返る()
-  {
+  public function testSfIsSuccess_認証成功でリファラが正しい場合_trueが返る() {
     $objSess = new SC_Session_Mock();
     $objSess->is_success = SUCCESS;
@@ -82,6 +76,5 @@
   }
 
-  public function testSfIsSuccess_認証成功でリファラが不正な場合_falseが返る()
-  {
+  public function testSfIsSuccess_認証成功でリファラが不正な場合_falseが返る() {
     $objSess = new SC_Session_Mock();
     $objSess->is_success = SUCCESS;
@@ -98,11 +91,9 @@
 }
 
-class SC_Session_Mock extends SC_Session
-{
+class SC_Session_Mock extends SC_Session {
 
   public $is_success;
 
-  function IsSuccess()
-  {
+  function IsSuccess() {
     return $this->is_success;
   }
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMultiplyTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMultiplyTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfMultiplyTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfMultiplyTest extends Common_TestCase
-{
+class SC_Utils_sfMultiplyTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfMultiply__掛け算の結果が返る()
-  {
+  public function testSfMultiply__掛け算の結果が返る() {
     $this->expected = 520;
     $this->actual = SC_Utils::sfMultiply(13, 40);
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsZeroFillingTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsZeroFillingTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfIsZeroFillingTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Utils_sfIsZeroFillingTest extends Common_TestCase
-{
+class SC_Utils_sfIsZeroFillingTest extends Common_TestCase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfIsZeroFilling_桁数が1の場合_FALSEを返す()
-  {
+  public function testSfIsZeroFilling_桁数が1の場合_FALSEを返す() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsZeroFilling('0');
@@ -54,6 +50,5 @@
   }
 
-  public function testSfIsZeroFilling_桁数が2以上で0埋めされていない場合_FALSEを返す()
-  {
+  public function testSfIsZeroFilling_桁数が2以上で0埋めされていない場合_FALSEを返す() {
     $this->expected = FALSE;
     $this->actual = SC_Utils::sfIsZeroFilling('12');
@@ -62,6 +57,5 @@
   }
 
-  public function testSfIsZeroFilling_桁数が2以上で0埋めされている場合_TRUEを返す()
-  {
+  public function testSfIsZeroFilling_桁数が2以上で0埋めされている場合_TRUEを返す() {
     $this->expected = TRUE;
     $this->actual = SC_Utils::sfIsZeroFilling('01');
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfFlushTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfFlushTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfFlushTest.php	(revision 22796)
@@ -33,21 +33,17 @@
  * @version $Id$
  */
-class SC_Utils_sfFlushTest extends Common_TestCase
-{
+class SC_Utils_sfFlushTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfFlush_IEの場合_フラッシュされる()
-  {
+  public function testSfFlush_IEの場合_フラッシュされる() {
     $this->expectOutputString('');
     echo 'Hello, World!!';
@@ -55,6 +51,5 @@
   }
 
-  public function testSfFlush_文字列を指定した場合_フラッシュされる()
-  {
+  public function testSfFlush_文字列を指定した場合_フラッシュされる() {
     $this->expectOutputString('');
     echo 'Hello, World!!';
@@ -62,6 +57,5 @@
   }
 
-  public function testSfFlush_参考_この関数を呼ばないとバッファに出力が残る()
-  {
+  public function testSfFlush_参考_この関数を呼ばないとバッファに出力が残る() {
     $this->expectOutputString('Hello, World!!');
     echo 'Hello, World!!';
Index: branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCutStringTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCutStringTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfCutStringTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Utils_sfCutStringTest extends Common_TestCase
-{
+class SC_Utils_sfCutStringTest extends Common_TestCase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfCutString_マルチバイト指定で指定長より2文字以上長い場合_指定長でカットされる()
-  {
+  public function testSfCutString_マルチバイト指定で指定長より2文字以上長い場合_指定長でカットされる() {
     $input = 'あいうえおABC、こんにちは。';
     $this->expected = 'あいうえおABC、こんにち...';
@@ -56,6 +52,5 @@
   }
 
-  public function testSfCutString_マルチバイト指定で指定長より1文字長い場合_カットされない()
-  {
+  public function testSfCutString_マルチバイト指定で指定長より1文字長い場合_カットされない() {
     $input = 'あいうえおABC、こんにちは';
     $this->expected = 'あいうえおABC、こんにちは';
@@ -65,6 +60,5 @@
   }
 
-  public function testSfCutString_マルチバイト指定で指定長以内の場合_カットされない()
-  {
+  public function testSfCutString_マルチバイト指定で指定長以内の場合_カットされない() {
     $input = 'あいうえおABC、こんにち';
     $this->expected = 'あいうえおABC、こんにち';
@@ -74,6 +68,5 @@
   }
 
-  public function testSfCutString_1バイト指定で指定長より3文字以上長い場合_指定長でカットされる()
-  {
+  public function testSfCutString_1バイト指定で指定長より3文字以上長い場合_指定長でカットされる() {
     $input = 'hello, world!!';
     $this->expected = 'hello, worl...';
@@ -83,6 +76,5 @@
   }
 
-  public function testSfCutString_1バイト指定で指定長より2文字長い場合_カットされない()
-  {
+  public function testSfCutString_1バイト指定で指定長より2文字長い場合_カットされない() {
     $input = 'hello, world!';
     $this->expected = 'hello, world!';
@@ -92,6 +84,5 @@
   }
 
-  public function testSfCutString_1バイト指定で指定長より1文字長い場合_カットされない()
-  {
+  public function testSfCutString_1バイト指定で指定長より1文字長い場合_カットされない() {
     $input = 'hello, world';
     $this->expected = 'hello, world';
@@ -101,6 +92,5 @@
   }
 
-  public function testSfCutString_1バイト指定で指定長以内の場合_カットされない()
-  {
+  public function testSfCutString_1バイト指定で指定長以内の場合_カットされない() {
     $input = 'hello, worl';
     $this->expected = 'hello, worl';
@@ -111,6 +101,5 @@
 
   // [までの場合
-  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる1()
-  {
+  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる1() {
     $input = "hello[emoji:135], world.";
     $this->expected = 'hello...';
@@ -121,6 +110,5 @@
 
   // ]の直前までの場合
-  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる2()
-  {
+  public function testSfCutString_絵文字を含んでカットされる場合_中途半端な絵文字がカットされる2() {
     $input = "hello[emoji:135], world.";
     $this->expected = 'hello...';
@@ -131,6 +119,5 @@
 
   // 最初の絵文字の途中
-  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる1()
-  {
+  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる1() {
     $input = "hello[emoji:100][emoji:20], world![emoji:10]";
     $this->expected = 'hello...';
@@ -141,6 +128,5 @@
 
   // 2つめの絵文字の途中
-  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる2()
-  {
+  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる2() {
     $input = "hello[emoji:100][emoji:20], world![emoji:10]";
     $this->expected = 'hello[emoji:100]...';
@@ -151,6 +137,5 @@
 
   // 3つめの絵文字の途中
-  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる3()
-  {
+  public function testSfCutString_複数の絵文字を含んでいてカットされる場合_中途半端な絵文字がカットされる3() {
     $input = "hello[emoji:100][emoji:20], world![emoji:10]";
     $this->expected = 'hello[emoji:100][emoji:20], wo...';
@@ -161,6 +146,5 @@
 
   // TODO 要確認 三点リーダ付けない場合は、lenと比較した方が良いのでは？
-  public function testSfCutString_三点リーダ付加指定がない場合_付加されない()
-  {
+  public function testSfCutString_三点リーダ付加指定がない場合_付加されない() {
     $input = 'hello, world';
     $this->expected = 'hello';
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_extractShippingTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_extractShippingTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_extractShippingTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_extractShippingTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_extractShippingTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testExtractShipping__予め指定されたキーだけが抽出される()
-  {
+  public function testExtractShipping__予め指定されたキーだけが抽出される() {
     $helper = new SC_Helper_Purchase();
     $helper->arrShippingKey = array('id', 'name', 'code');
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsByPriceTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsByPriceTest.php	(revision 22796)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsByPriceTest.php	(revision 22796)
@@ -0,0 +1,116 @@
+<?php
+
+$HOME = realpath(dirname(__FILE__)) . "/../../../..";
+require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
+/*
+ * This file is part of EC-CUBE
+ *
+ * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+/**
+ * SC_Helper_Purchase::getPaymentsByPrice()のテストクラス.
+ *
+ *
+ * @author Hiroko Tamagawa
+ * @version $Id$
+ */
+class SC_Helper_Purchase_getPaymentsByPriceTest extends SC_Helper_Purchase_TestBase {
+
+
+  protected function setUp() {
+    parent::setUp();
+    $this->setUpPayment();
+    $this->setUpPaymentOptions();
+  }
+
+  protected function tearDown() {
+    parent::tearDown();
+  }
+
+  /////////////////////////////////////////
+  public function testGetPaymentsByPrice_購入金額がすべての上限を上回る場合_上限の設定がないものだけ取得できる() {
+    $deliv_id = '1003';
+    $total = 21001;
+    $helper = new SC_Helper_Purchase();
+
+    $this->expected['count'] = 2;
+    $this->expected['first'] = array(
+      'payment_id' => '3002',
+      'payment_method' => '支払方法3002',
+      'rule_max' => null,
+      'upper_rule' => null,
+      'note' => null,
+      'payment_image' => null,
+      'charge' => null
+    );
+    $this->expected['second_id'] = '3003';
+
+    $result = $helper->getPaymentsByPrice($total, $deliv_id);
+    $this->actual['count'] = count($result);
+    $this->actual['first'] = $result[0];
+    $this->actual['second_id'] = $result[1]['payment_id'];
+
+    $this->verify();
+  }
+
+  public function testGetPaymentsByPrice_購入金額が一部の上限を上回る場合_上限に引っかからないものだけ取得できる() {
+    $deliv_id = '1003';
+    $total = 20500;
+    $helper = new SC_Helper_Purchase();
+
+    $this->expected = array('3002', '3003', '3005');
+
+    $result = $helper->getPaymentsByPrice($total, $deliv_id);
+    $this->actual = Test_Utils::mapCols($result, 'payment_id');
+
+    $this->verify();
+  }
+
+  public function testGetPaymentsByPrice_購入金額が一部の下限を下回る場合_下限に引っかからないものだけ取得できる() {
+    $deliv_id = '1003';
+    $total = 11000;
+    $helper = new SC_Helper_Purchase();
+
+    $this->expected = array('3002', '3003', '3004');
+
+    $result = $helper->getPaymentsByPrice($total, $deliv_id);
+    $this->actual = Test_Utils::mapCols($result, 'payment_id');
+
+    $this->verify();
+  }
+
+  public function testGetPaymentsByPrice_購入金額がすべての下限を下回る場合_下限の設定がないものだけ取得できる() {
+    $deliv_id = '1003';
+    $total = 9999;
+    $helper = new SC_Helper_Purchase();
+
+    $this->expected = array('3002', '3004');
+
+    $result = $helper->getPaymentsByPrice($total, $deliv_id);
+    $this->actual = Test_Utils::mapCols($result, 'payment_id');
+
+    $this->verify();
+  }
+
+
+  //////////////////////////////////////////
+
+}
+
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetAllShippingTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetAllShippingTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetAllShippingTempTest.php	(revision 22796)
@@ -32,9 +32,7 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_unsetAllShippingTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_unsetAllShippingTempTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
 
@@ -44,12 +42,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testUnsetAllShippingTemp_複数配送も破棄するフラグがOFFの場合_情報の一部が破棄される()
-  {
+  public function testUnsetAllShippingTemp_複数配送も破棄するフラグがOFFの場合_情報の一部が破棄される() {
     SC_Helper_Purchase::unsetAllShippingTemp();
 
@@ -61,6 +57,5 @@
   }
 
-  public function testUnsetAllShippingTemp_複数配送も破棄するフラグがONの場合_全ての情報が破棄される()
-  {
+  public function testUnsetAllShippingTemp_複数配送も破棄するフラグがONの場合_全ての情報が破棄される() {
     SC_Helper_Purchase::unsetAllShippingTemp(TRUE);
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getDelivTimeTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getDelivTimeTest.php	(revision 22796)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getDelivTimeTest.php	(revision 22796)
@@ -0,0 +1,74 @@
+<?php
+
+$HOME = realpath(dirname(__FILE__)) . "/../../../..";
+require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
+/*
+ * This file is part of EC-CUBE
+ *
+ * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+/**
+ * SC_Helper_Purchase::getDelivTime()のテストクラス.
+ *
+ *
+ * @author Hiroko Tamagawa
+ * @version $Id$
+ */
+class SC_Helper_Purchase_getDelivTimeTest extends SC_Helper_Purchase_TestBase {
+
+
+  protected function setUp() {
+    parent::setUp();
+    $this->setUpDelivTime();
+  }
+
+  protected function tearDown() {
+    parent::tearDown();
+  }
+
+  /////////////////////////////////////////
+  public function testGetDelivTime_存在しない配送業者IDを指定した場合_結果が空になる() {
+    $deliv_id = '100'; // 存在しないID
+
+    $this->expected = array();
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getDelivTime($deliv_id);
+
+    $this->verify('お届け時間');
+  }
+
+  public function testGetDelivTime_存在する配送業者IDを指定した場合_結果が正しい順序で取得できる() {
+    $deliv_id = '1001';
+  
+    $this->expected = array(
+      '1' => '午前',
+      '2' => '午後'
+    );
+
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getDelivTime($deliv_id);
+    
+    $this->verify('お届け時間');
+  }
+
+  //////////////////////////////////////////
+
+}
+
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerShippingTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerShippingTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerShippingTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_registerShippingTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_registerShippingTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpShippingOnDb();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testRegisterShipping_元々存在しない受注IDの場合_新規にデータが作られる()
-  {
+  public function testRegisterShipping_元々存在しない受注IDの場合_新規にデータが作られる() {
     $order_id = '10';
     $arrParams = array(
@@ -85,6 +81,5 @@
   }
 
-  public function testRegisterShipping_元々存在する受注IDの場合_既存のデータが置き換えられる()
-  {
+  public function testRegisterShipping_元々存在する受注IDの場合_既存のデータが置き換えられる() {
     $order_id = '2';
     $arrParams = array(
@@ -123,6 +118,5 @@
   }
 
-  public function testRegisterShipping_配送日付が空の場合_エラーが起きず変換処理がスキップされる()
-  {
+  public function testRegisterShipping_配送日付が空の場合_エラーが起きず変換処理がスキップされる() {
     $order_id = '2';
     $arrParams = array(
@@ -161,6 +155,5 @@
   }
 
-  public function testRegisterShipping_非会員購入の場合_配送IDが設定される()
-  {
+  public function testRegisterShipping_非会員購入の場合_配送IDが設定される() {
     $order_id = '2';
     $arrParams = array(
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_saveShippingTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_saveShippingTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_saveShippingTempTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_saveShippingTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_saveShippingTempTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSaveShippingTemp_元々存在しない配送先IDの場合_新規に配列が作られる()
-  {
+  public function testSaveShippingTemp_元々存在しない配送先IDの場合_新規に配列が作られる() {
     $this->setUpShipping($this->getMultipleShipping());
 
@@ -68,6 +64,5 @@
   }
 
-  public function testSaveShippingTemp_元々存在する配送先IDの場合_情報がマージされる()
-  {
+  public function testSaveShippingTemp_元々存在する配送先IDの場合_情報がマージされる() {
     $this->setUpShipping($this->getMultipleShipping());
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_isAddPointTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_isAddPointTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_isAddPointTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_isAddPointTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_isAddPointTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testIsAddPoint_新規注文の場合_FALSEが返る()
-  {
+  public function testIsAddPoint_新規注文の場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isAddPoint(ORDER_NEW);
@@ -54,6 +50,5 @@
   }
 
-  public function testIsAddPoint_入金待ちの場合_FALSEが返る()
-  {
+  public function testIsAddPoint_入金待ちの場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isAddPoint(ORDER_PAY_WAIT);
@@ -62,6 +57,5 @@
   }
 
-  public function testIsAddPoint_入金済みの場合_FALSEが返る()
-  {
+  public function testIsAddPoint_入金済みの場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isAddPoint(ORDER_PRE_END);
@@ -70,6 +64,5 @@
   }
 
-  public function testIsAddPoint_キャンセルの場合_FALSEが返る()
-  {
+  public function testIsAddPoint_キャンセルの場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isAddPoint(ORDER_CANCEL);
@@ -78,6 +71,5 @@
   }
 
-  public function testIsAddPoint_取り寄せ中の場合_FALSEが返る()
-  {
+  public function testIsAddPoint_取り寄せ中の場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isAddPoint(ORDER_BACK_ORDER);
@@ -86,6 +78,5 @@
   }
 
-  public function testIsAddPoint_発送済みの場合_TRUEが返る()
-  {
+  public function testIsAddPoint_発送済みの場合_TRUEが返る() {
     $this->expected = TRUE;
     $this->actual = SC_Helper_Purchase::isAddPoint(ORDER_DELIV);
@@ -94,6 +85,5 @@
   }
 
-  public function testIsAddPoint_その他の場合_FALSEが返る()
-  {
+  public function testIsAddPoint_その他の場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isAddPoint(ORDER_PENDING);
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsTest.php	(revision 22796)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsTest.php	(revision 22796)
@@ -0,0 +1,71 @@
+<?php
+
+$HOME = realpath(dirname(__FILE__)) . "/../../../..";
+require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
+/*
+ * This file is part of EC-CUBE
+ *
+ * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+/**
+ * SC_Helper_Purchase::getPayments()のテストクラス.
+ *
+ *
+ * @author Hiroko Tamagawa
+ * @version $Id$
+ */
+class SC_Helper_Purchase_getPaymentsTest extends SC_Helper_Purchase_TestBase {
+
+
+  protected function setUp() {
+    parent::setUp();
+    $this->setUpPaymentOptions();
+  }
+
+  protected function tearDown() {
+    parent::tearDown();
+  }
+
+  /////////////////////////////////////////
+  public function testGetPayments_存在しない配送業者IDを指定した場合_結果が空になる() {
+    $deliv_id = '100'; // 存在しないID
+
+    $this->expected = array();
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getPayments($deliv_id);
+
+    $this->verify('支払方法');
+  }
+
+  public function testGetPayments_存在する配送業者IDを指定した場合_結果が正しい順序で取得できる() {
+    $deliv_id = '1001';
+  
+    $this->expected = array('1002', '1001');
+
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getPayments($deliv_id);
+    
+    $this->verify('支払方法');
+  }
+
+  //////////////////////////////////////////
+
+}
+
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetOneShippingTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetOneShippingTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetOneShippingTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_unsetOneShippingTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_unsetOneShippingTempTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testUnsetOneShippingTemp__指定したIDの配送情報のみが破棄される()
-  {
+  public function testUnsetOneShippingTemp__指定したIDの配送情報のみが破棄される() {
     $this->setUpShipping($this->getMultipleShipping());
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_isUsePointTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_isUsePointTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_isUsePointTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_isUsePointTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_isUsePointTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testIsUsePoint_ステータスがnullの場合_FALSEが返る()
-  {
+  public function testIsUsePoint_ステータスがnullの場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isUsePoint(null);
@@ -54,6 +50,5 @@
   }
 
-  public function testIsUsePoint_ステータスがキャンセルの場合_FALSEが返る()
-  {
+  public function testIsUsePoint_ステータスがキャンセルの場合_FALSEが返る() {
     $this->expected = FALSE;
     $this->actual = SC_Helper_Purchase::isUsePoint(ORDER_CANCEL);
@@ -63,6 +58,5 @@
 
   // TODO 要確認：本当にキャンセルのとき以外はすべてTRUEで良いのか、現在の使われ方の都合か
-  public function testIsUsePoint_ステータスがキャンセル以外の場合_TRUEが返る()
-  {
+  public function testIsUsePoint_ステータスがキャンセル以外の場合_TRUEが返る() {
     $this->expected = TRUE;
     $this->actual = SC_Helper_Purchase::isUsePoint(ORDER_NEW);
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getDelivTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getDelivTest.php	(revision 22796)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getDelivTest.php	(revision 22796)
@@ -0,0 +1,87 @@
+<?php
+
+$HOME = realpath(dirname(__FILE__)) . "/../../../..";
+require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
+/*
+ * This file is part of EC-CUBE
+ *
+ * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+/**
+ * SC_Helper_Purchase::getDeliv()のテストクラス.
+ *
+ *
+ * @author Hiroko Tamagawa
+ * @version $Id$
+ */
+class SC_Helper_Purchase_getDelivTest extends SC_Helper_Purchase_TestBase {
+
+
+  protected function setUp() {
+    parent::setUp();
+    $this->setUpDeliv();
+  }
+
+  protected function tearDown() {
+    parent::tearDown();
+  }
+
+  /////////////////////////////////////////
+  public function testGetDeliv_存在しない商品種別IDを指定した場合_結果が空になる() {
+    $product_type_id = '9999'; // 存在しないID
+
+    $this->expected = array();
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getDeliv($product_type_id);
+
+    $this->verify('配送業者');
+  }
+
+  public function testGetDeliv_存在する商品種別IDを指定した場合_結果が正しい順序で取得できる() {
+    $product_type_id = '1001';
+  
+    $this->expected['count'] = 2;
+    $this->expected['first'] = array(
+      'deliv_id' => '1002',
+      'product_type_id' => '1001',
+      'name' => '配送業者02',
+      'rank' => '3'
+    );
+    $this->expected['second'] = array(
+      'deliv_id' => '1001',
+      'product_type_id' => '1001',
+      'name' => '配送業者01',
+      'rank' => '2'
+    );
+
+    $helper = new SC_Helper_Purchase();
+    $result = $helper->getDeliv($product_type_id);
+    $this->actual['count'] = count($result);
+    $cols = array('deliv_id', 'product_type_id', 'name', 'rank');
+    $this->actual['first'] = Test_Utils::mapArray($result[0], $cols);
+    $this->actual['second'] = Test_Utils::mapArray($result[1], $cols);
+
+    $this->verify('配送業者');
+  }
+
+  //////////////////////////////////////////
+
+}
+
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderDetailTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderDetailTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderDetailTest.php	(revision 22796)
@@ -27,25 +27,22 @@
 /**
  * SC_Helper_Purchase::registerOrderDetail()のテストクラス.
+ * TODO 他のfunctionと、SC_Query_Exのインスタンスの受け取り方が異なっている。
  *
  * @author Hiroko Tamagawa
  * @version $Id$
  */
-class SC_Helper_Purchase_registerOrderDetailTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_registerOrderDetailTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrderDetail();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testRegisterOrderDetail_該当の受注が存在する場合_削除後に新しい情報が登録される()
-  {
+  public function testRegisterOrderDetail_該当の受注が存在する場合_削除後に新しい情報が登録される() {
     $params = array(
       array(
@@ -80,6 +77,5 @@
   }
 
-  public function testRegisterOrderDetail_該当の受注が存在しない場合_新しい情報が追加登録される()
-  {
+  public function testRegisterOrderDetail_該当の受注が存在しない場合_新しい情報が追加登録される() {
     $params = array(
       array(
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingsTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingsTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingsTest.php	(revision 22796)
@@ -32,10 +32,8 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_getShippingsTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_getShippingsTest extends SC_Helper_Purchase_TestBase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpShipmentItem();
@@ -43,12 +41,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testGetShippings_存在しない受注IDを指定した場合_結果が空になる()
-  {
+  public function testGetShippings_存在しない受注IDを指定した場合_結果が空になる() {
     $order_id = '100'; // 存在しないID
 
@@ -60,6 +56,5 @@
   }
 
-  public function testGetShippings_存在する受注IDを指定した場合_結果が取得できる()
-  {
+  public function testGetShippings_存在する受注IDを指定した場合_結果が取得できる() {
     $order_id = '1';
   
@@ -83,6 +78,5 @@
   }
 
-  public function testGetShippings_商品取得フラグをOFFにした場合_結果に商品情報が含まれない()
-  {
+  public function testGetShippings_商品取得フラグをOFFにした場合_結果に商品情報が含まれない() {
     $order_id = '1';
     
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_sfUpdateOrderNameColTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_sfUpdateOrderNameColTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_sfUpdateOrderNameColTest.php	(revision 22796)
@@ -32,10 +32,8 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_sfUpdateOrderNameColTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_sfUpdateOrderNameColTest extends SC_Helper_Purchase_TestBase {
   var $helper;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrder();
@@ -49,12 +47,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSfUpdateOrderNameCol_TEMPフラグがOFFの場合_受注テーブルと発送テーブルが更新される()
-  {
+  public function testSfUpdateOrderNameCol_TEMPフラグがOFFの場合_受注テーブルと発送テーブルが更新される() {
     $order_id = '1002';
 
@@ -77,6 +73,5 @@
   }
 
-  public function testSfUpdateOrderNameCol_TEMPフラグがONの場合_一時テーブルが更新される()
-  {
+  public function testSfUpdateOrderNameCol_TEMPフラグがONの場合_一時テーブルが更新される() {
     $order_id = '1002';
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderCompleteTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderCompleteTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderCompleteTest.php	(revision 22796)
@@ -33,10 +33,8 @@
  */
 
-class SC_Helper_Purchase_registerOrderCompleteTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_registerOrderCompleteTest extends SC_Helper_Purchase_TestBase {
   private $helper;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrderTemp();
@@ -44,12 +42,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testRegisterOrderComplete_不要な変数が含まれている場合_登録前に除外される()
-  {
+  public function testRegisterOrderComplete_不要な変数が含まれている場合_登録前に除外される() {
     // 引数の準備
     $orderParams = array(
@@ -98,6 +94,5 @@
   }
 
-  public function testRegisterOrderComplete_ステータスの指定がない場合_新規受付扱いとなる()
-  {
+  public function testRegisterOrderComplete_ステータスの指定がない場合_新規受付扱いとなる() {
     // 引数の準備
     $orderParams = array(
@@ -129,9 +124,7 @@
 }
 
-class SC_Helper_Purchase_registerOrderCompleteMock extends SC_Helper_Purchase
-{
+class SC_Helper_Purchase_registerOrderCompleteMock extends SC_Helper_Purchase {
 
-  function registerOrder($order_id, $params)
-  {
+  function registerOrder($order_id, $params) {
     $_SESSION['testResult']['registerOrder'] = array(
       'order_id' => $order_id,
@@ -141,6 +134,5 @@
   }
 
-  function registerOrderDetail($order_id, $params)
-  {
+  function registerOrderDetail($order_id, $params) {
     $_SESSION['testResult']['registerOrderDetail'] = array(
       'order_id' => $order_id,
@@ -149,14 +141,11 @@
   }
 
-  function setUniqId()
-  {}
+  function setUniqId() {}
 }
 
-class SC_CartSession_registerOrderCompleteMock extends SC_CartSession
-{
+class SC_CartSession_registerOrderCompleteMock extends SC_CartSession {
 
   // カートの内容を取得
-  function getCartList($cartKey)
-  {
+  function getCartList($cartKey) {
     return array(
       array(
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php	(revision 22796)
@@ -31,14 +31,11 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_TestBase extends Common_TestCase
-{
-
-  protected function setUp()
-  {
+class SC_Helper_Purchase_TestBase extends Common_TestCase {
+
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
@@ -48,6 +45,5 @@
    * セッションに配送情報を設定します。
    */
-  protected function setUpShipping($shipping)
-  {
+  protected function setUpShipping($shipping) {
     if (!$shipping) {
       $shipping = $this->getSingleShipping(); 
@@ -57,6 +53,5 @@
   }
 
-  protected function getSingleShipping()
-  {
+  protected function getSingleShipping() {
     return array(
       '00001' => array(
@@ -67,6 +62,5 @@
   }
 
-  protected function getMultipleShipping()
-  {
+  protected function getMultipleShipping() {
     return array(
       '00001' => array(
@@ -88,6 +82,5 @@
    * DBに配送情報を設定します。
    */
-  protected function setUpShippingOnDb()
-  {
+  protected function setUpShippingOnDb() {
     $shippings = array(
       array(
@@ -123,6 +116,5 @@
    * DBに配送商品情報を設定します。
    */
-  protected function setUpShipmentItem()
-  {
+  protected function setUpShipmentItem() {
       $shipping_items = array(
         array(
@@ -152,6 +144,5 @@
    * DBに商品クラス情報を設定します.
    */
-  protected function setUpProductClass()
-  {
+  protected function setUpProductClass() {
       $product_class = array(
         array(
@@ -166,5 +157,4 @@
           'price02' => '1500',
           'creator_id' => '1',
-          'stock' => '100',
           'del_flg' => '0'
         ),
@@ -176,5 +166,4 @@
           'price02' => '2500',
           'creator_id' => '1',
-          'stock' => '50',
           'del_flg' => '0'
         )
@@ -182,6 +171,5 @@
 
     $this->objQuery->delete('dtb_products_class');
-    foreach ($product_class as $key => $item)
-{
+    foreach ($product_class as $key => $item) {
       $this->objQuery->insert('dtb_products_class', $item);
     }
@@ -193,6 +181,5 @@
    * DBに製品カテゴリ情報を登録します.
    */
-  protected function setUpClassCategory()
-  {
+  protected function setUpClassCategory() {
     $class_category = array(
       array(
@@ -221,6 +208,5 @@
    * DBに製品情報を登録します.
    */
- protected function setUpProducts()
- {
+ protected function setUpProducts() {
    $products = array(
      array(
@@ -251,6 +237,5 @@
   * DBに支払方法の情報を登録します.
   */
- protected function setUpPaymentOptions()
- {
+ protected function setUpPaymentOptions() {
    $payment_options = array(
      array(
@@ -305,6 +290,5 @@
   * DBに配送業者の情報を登録します.
   */
- protected function setUpDeliv()
- {
+ protected function setUpDeliv() {
    $deliv = array(
      array(  // 削除フラグON
@@ -352,6 +336,5 @@
   * DBにお届け時間の情報を登録します.
   */
- protected function setUpDelivTime()
- {
+ protected function setUpDelivTime() {
    $deliv_time = array(
      array(
@@ -381,6 +364,5 @@
   * DBに支払方法の情報を登録します.
   */
- protected function setUpPayment()
- {
+ protected function setUpPayment() {
    $payment = array(
      array(
@@ -449,6 +431,5 @@
   * DBに受注情報を設定します.
   */
-  protected function setUpOrder()
-  {
+  protected function setUpOrder() {
     $order = array(
       array(
@@ -485,6 +466,5 @@
   * DBに受注一時情報を設定します.
   */
-  protected function setUpOrderTemp()
-  {
+  protected function setUpOrderTemp() {
     $order = array(
       array(
@@ -514,6 +494,5 @@
   * DBに受注詳細を設定します.
   */
- protected function setUpOrderDetail()
- {
+ protected function setUpOrderDetail() {
    $order_detail = array(
      array(
@@ -565,6 +544,5 @@
   * DBに顧客情報を設定します。
   */
- protected function setUpCustomer()
- {
+ protected function setUpCustomer() {
    $customer = array(
      array(
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_sfUpdateOrderStatusTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_sfUpdateOrderStatusTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_sfUpdateOrderStatusTest.php	(revision 22796)
@@ -32,11 +32,9 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_sfUpdateOrderStatusTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_sfUpdateOrderStatusTest extends SC_Helper_Purchase_TestBase {
 
   private $helper;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrder();
@@ -45,6 +43,5 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
@@ -52,6 +49,5 @@
   /////////////////////////////////////////
   // オプションの引数：対応状況、使用ポイント、加算ポイント
-  public function testSfUpdateOrderStatus_オプションの引数が未指定の場合_DBの値が引き継がれる()
-  {
+  public function testSfUpdateOrderStatus_オプションの引数が未指定の場合_DBの値が引き継がれる() {
     $order_id = '1001';
     $old_update_date = $this->objQuery->get('update_date', 'dtb_order', 'order_id = ?', array($order_id));
@@ -85,6 +81,5 @@
   // TODO 定数を変更できないためテスト不可
   /**
-  public function testSfUpdateOrderStatus_ポイント使用しない設定の場合_ポイントに関する処理が行われない()
-  {
+  public function testSfUpdateOrderStatus_ポイント使用しない設定の場合_ポイントに関する処理が行われない() {
 
 
@@ -93,6 +88,5 @@
   */
 
-  public function testSfUpdateOrderStatus_対応状況が発送済みに変更された場合_発送日が更新される()
-  {
+  public function testSfUpdateOrderStatus_対応状況が発送済みに変更された場合_発送日が更新される() {
     $order_id = '1001';
     $old_dates = $this->objQuery->select(
@@ -130,6 +124,5 @@
   }
 
-  public function testSfUpdateOrderStatus_対応状況が入金済みに変更された場合_入金日が更新される()
-  {
+  public function testSfUpdateOrderStatus_対応状況が入金済みに変更された場合_入金日が更新される() {
     $order_id = '1002';
     $old_dates = $this->objQuery->select(
@@ -162,6 +155,5 @@
   }
 
-  public function testSfUpdateOrderStatus_変更前の対応状況が利用対象の場合_変更前の使用ポイントを戻す()
-  {
+  public function testSfUpdateOrderStatus_変更前の対応状況が利用対象の場合_変更前の使用ポイントを戻す() {
     $order_id = '1002';
     $old_dates = $this->objQuery->select(
@@ -191,6 +183,5 @@
   }
 
-  public function testSfUpdateOrderStatus_変更後の対応状況が利用対象の場合_変更後の使用ポイントを引く()
-  {
+  public function testSfUpdateOrderStatus_変更後の対応状況が利用対象の場合_変更後の使用ポイントを引く() {
     $order_id = '1001';
     $old_dates = $this->objQuery->select(
@@ -219,6 +210,5 @@
   }
 
-  public function testSfUpdateOrderStatus_変更前の対応状況が加算対象の場合_変更前の加算ポイントを戻す()
-  {
+  public function testSfUpdateOrderStatus_変更前の対応状況が加算対象の場合_変更前の加算ポイントを戻す() {
     $order_id = '1002';
     $old_dates = $this->objQuery->select(
@@ -248,6 +238,5 @@
   }
 
-  public function testSfUpdateOrderStatus_変更後の対応状況が加算対象の場合_変更後の加算ポイントを足す()
-  {
+  public function testSfUpdateOrderStatus_変更後の対応状況が加算対象の場合_変更後の加算ポイントを足す() {
     $order_id = '1001';
     $old_dates = $this->objQuery->select(
@@ -276,6 +265,5 @@
   }
 
-  public function testSfUpdateOrderStatus_加算ポイントがプラスの場合_会員テーブルが更新される()
-  {
+  public function testSfUpdateOrderStatus_加算ポイントがプラスの場合_会員テーブルが更新される() {
     $order_id = '1001';
     $old_dates = $this->objQuery->select(
@@ -306,6 +294,5 @@
   }
 
-  public function testSfUpdateOrderStatus_加算ポイントが負でポイントが足りている場合_会員テーブルが更新される()
-  {
+  public function testSfUpdateOrderStatus_加算ポイントが負でポイントが足りている場合_会員テーブルが更新される() {
     $order_id = '1001';
     $old_dates = $this->objQuery->select(
@@ -338,6 +325,5 @@
   // TODO ロールバックされる場合はexitするためテスト不可.
   /**
-  public function testSfUpdateOrderStatus_加算ポイントが負でポイントが足りていない場合_会員テーブルがロールバックされエラーとなる()
-  {
+  public function testSfUpdateOrderStatus_加算ポイントが負でポイントが足りていない場合_会員テーブルがロールバックされエラーとなる() {
   }
   */
@@ -345,6 +331,5 @@
   //////////////////////////////////////////
 
-  function assertUpdate($new_dates, $old_dates, $key, $message, $is_update = true)
-  {
+  function assertUpdate($new_dates, $old_dates, $key, $message, $is_update = true) {
     $new_date = $new_dates[0][$key];
     $old_date = $old_dates[0][$key];
@@ -360,12 +345,10 @@
 }
 
-class SC_Helper_Purchase_sfUpdateOrderStatusMock extends SC_Helper_Purchase
-{
+class SC_Helper_Purchase_sfUpdateOrderStatusMock extends SC_Helper_Purchase {
 
   var $usePoint;
   var $addPoint;
 
-  function isUsePoint($status)
-  {
+  function isUsePoint($status) {
     if (is_null($this->usePoint)) {
       return parent::isUsePoint($status);
@@ -374,6 +357,5 @@
   }
 
-  function isAddPoint($status)
-  {
+  function isAddPoint($status) {
     if (is_null($this->addPoint)) {
       return parent::isAddPoint($status);
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerOrderTest.php	(revision 22796)
@@ -32,11 +32,9 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_registerOrderTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_registerOrderTest extends SC_Helper_Purchase_TestBase {
 
   private $helper;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrder();
@@ -44,12 +42,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testRegisterOrder_既に受注IDが存在する場合_情報が更新される()
-  {
+  public function testRegisterOrder_既に受注IDが存在する場合_情報が更新される() {
     $order_id = '1001';
     $arrParams = array(
@@ -93,6 +89,5 @@
   }
 
-  public function testRegisterOrder_存在しない受注IDを指定した場合_新規に登録される()
-  {
+  public function testRegisterOrder_存在しない受注IDを指定した場合_新規に登録される() {
     $order_id = '1003';
     $arrParams = array(
@@ -137,6 +132,5 @@
   }
 
-  public function testRegisterOrder_受注IDが未指定の場合_新たにIDが発行される()
-  {
+  public function testRegisterOrder_受注IDが未指定の場合_新たにIDが発行される() {
     $order_id = '';
     $arrParams = array( // 顧客IDも未指定
@@ -188,8 +182,6 @@
 }
 
-class SC_Helper_Purchase_registerOrderMock extends SC_Helper_Purchase
-{
-  function sfUpdateOrderStatus($order_id, $status, $add_point, $use_point, $values)
-  {
+class SC_Helper_Purchase_registerOrderMock extends SC_Helper_Purchase {
+  function sfUpdateOrderStatus($order_id, $status, $add_point, $use_point, $values) {
     $_SESSION['testResult']['sfUpdateOrderStatus'] = array(
       'order_id' => $order_id,
@@ -200,6 +192,5 @@
   }
 
-  function sfUpdateOrderNameCol($order_id)
-  {
+  function sfUpdateOrderNameCol($order_id) {
    $_SESSION['testResult']['sfUpdateOrderNameCol'] = $order_id;
   }
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_saveOrderTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_saveOrderTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_saveOrderTempTest.php	(revision 22796)
@@ -32,10 +32,8 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_saveOrderTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_saveOrderTempTest extends SC_Helper_Purchase_TestBase {
   private $helper;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrderTemp();
@@ -43,12 +41,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSaveOrderTemp_受注一時情報IDが空の場合_何もしない()
-  {
+  public function testSaveOrderTemp_受注一時情報IDが空の場合_何もしない(){
     $this->helper->saveOrderTemp(null,
       array(
@@ -65,6 +61,5 @@
   }
 
-  public function testSaveOrderTemp_既存の情報がない場合_情報が新規登録される()
-  {
+  public function testSaveOrderTemp_既存の情報がない場合_情報が新規登録される(){
     $this->helper->saveOrderTemp('1003',
       array(
@@ -91,6 +86,5 @@
   }
 
-  public function testSaveOrderTemp_既存の情報がある場合_情報が更新される()
-  {
+  public function testSaveOrderTemp_既存の情報がある場合_情報が更新される(){
     $this->helper->saveOrderTemp('1002',
       array(
@@ -117,6 +111,5 @@
   }
 
-  public function testSaveOrderTemp_注文者情報がある場合_情報がコピーされる()
-  {
+  public function testSaveOrderTemp_注文者情報がある場合_情報がコピーされる(){
     $this->helper->saveOrderTemp('1003',
       array(
@@ -142,8 +135,6 @@
 }
 
-class SC_Helper_Purchase_saveOrderTempMock extends SC_Helper_Purchase
-{
-  function copyFromCustomer($sqlval, $objCustomer)
-  {
+class SC_Helper_Purchase_saveOrderTempMock extends SC_Helper_Purchase {
+  function copyFromCustomer($sqlval, $objCustomer) {
     echo('COPY_FROM_CUSTOMER');
   }
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_copyFromCustomerTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_copyFromCustomerTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_copyFromCustomerTest.php	(revision 22796)
@@ -32,12 +32,10 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_copyFromCustomerTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_copyFromCustomerTest extends SC_Helper_Purchase_TestBase {
 
   var $customer;
   var $customer_array;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->customer = new SC_Customer();
@@ -66,12 +64,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testCopyFromCustomer_ログインしていない場合_何もしない()
-  {
+  public function testCopyFromCustomer_ログインしていない場合_何もしない() {
     $dest = array();
     User_Utils::setLoginState(FALSE, $this->customer_array, $this->objQuery);
@@ -85,6 +81,5 @@
   }
 
-  public function testCopyFromCustomer_モバイルの場合_モバイルのメールアドレスを設定する()
-  {
+  public function testCopyFromCustomer_モバイルの場合_モバイルのメールアドレスを設定する() {
     $dest = array();
     User_Utils::setLoginState(TRUE, $this->customer_array, $this->objQuery);
@@ -122,6 +117,5 @@
   }
 
-  public function testCopyFromCustomer_モバイルかつモバイルのメールアドレスがない場合_通常のメールアドレスを設定する()
-  {
+  public function testCopyFromCustomer_モバイルかつモバイルのメールアドレスがない場合_通常のメールアドレスを設定する() {
     $dest = array();
     $prefix = 'order';
@@ -144,6 +138,5 @@
   }
 
-  public function testCopyFromCustomer_モバイルでない場合_通常のメールアドレスをそのまま設定する()
-  {
+  public function testCopyFromCustomer_モバイルでない場合_通常のメールアドレスをそのまま設定する() {
     $dest = array();
     $prefix = 'prefix';
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetShippingTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetShippingTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetShippingTempTest.php	(revision 22796)
@@ -32,9 +32,7 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_unsetShippingTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_unsetShippingTempTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
 
@@ -44,12 +42,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testUnsetShippingTemp__配送情報がすべて破棄される()
-  {
+  public function testUnsetShippingTemp__配送情報がすべて破棄される() {
     SC_Helper_Purchase::unsetShippingTemp(TRUE);
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsByPaymentsIdTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsByPaymentsIdTest.php	(revision 22796)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getPaymentsByPaymentsIdTest.php	(revision 22796)
@@ -0,0 +1,85 @@
+<?php
+
+$HOME = realpath(dirname(__FILE__)) . "/../../../..";
+require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
+/*
+ * This file is part of EC-CUBE
+ *
+ * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+/**
+ * SC_Helper_Purchase::getPaymentsByPaymentsId()のテストクラス.
+ *
+ *
+ * @author Hiroko Tamagawa
+ * @version $Id$
+ */
+class SC_Helper_Purchase_getPaymentsByPaymentsIdTest extends SC_Helper_Purchase_TestBase {
+
+
+  protected function setUp() {
+    parent::setUp();
+    $this->setUpPayment();
+  }
+
+  protected function tearDown() {
+    parent::tearDown();
+  }
+
+  /////////////////////////////////////////
+  public function testGetPaymentsByPaymentsId_存在しない支払IDを指定した場合_結果が空になる() {
+    $payment_id = '9999'; // 存在しないID
+  
+    $this->expected = null;
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getPaymentsByPaymentsId($payment_id);
+
+    $this->verify('支払方法');
+  }
+
+  public function testGetPaymentsByPaymentsId_存在する支払IDを指定した場合_対応する支払方法の情報が取得できる() {
+    $payment_id = '1001';
+  
+    $this->expected = array(
+      'payment_id' => '1001',
+      'payment_method' => '支払方法1001'
+    );
+
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getPaymentsByPaymentsId($payment_id);
+    $this->actual = Test_Utils::mapArray($this->actual, array('payment_id', 'payment_method'));
+
+    $this->verify('支払方法');
+  }
+
+  public function testGetPaymentsByPaymentsId_削除されている支払IDを指定した場合_結果が空になる() {
+    $payment_id = '1002'; // 削除済みのID
+  
+    $this->expected = null;
+    $helper = new SC_Helper_Purchase();
+    $this->actual = $helper->getPaymentsByPaymentsId($payment_id);
+
+    $this->verify('支払方法');
+  }
+
+  //////////////////////////////////////////
+
+}
+
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShipmentItemsTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShipmentItemsTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShipmentItemsTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_getShipmentItemsTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_getShipmentItemsTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpShipmentItem();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testGetShipmentItems_存在しない受注IDを指定した場合_結果が空になる()
-  {
+  public function testGetShipmentItems_存在しない受注IDを指定した場合_結果が空になる() {
     $order_id = '100'; // 存在しないID
     $shipping_id = '1';
@@ -58,6 +54,5 @@
   }
 
-  public function testGetShipmentItems_存在しない配送先IDを指定した場合_結果が空になる()
-  {
+  public function testGetShipmentItems_存在しない配送先IDを指定した場合_結果が空になる() {
     $order_id = '1';
     $shipping_id = '100'; // 存在しないID
@@ -69,6 +64,5 @@
   }
 
-  public function testGetShipmentItems_存在する受注IDと配送先IDを指定した場合_結果が取得できる()
-  {
+  public function testGetShipmentItems_存在する受注IDと配送先IDを指定した場合_結果が取得できる() {
     $order_id = '1';
     $shipping_id = '1';
@@ -103,6 +97,5 @@
   }
 
-  public function testGetShipmentItems_詳細フラグをOFFにした場合_結果に詳細情報が含まれない()
-  {
+  public function testGetShipmentItems_詳細フラグをOFFにした場合_結果に詳細情報が含まれない() {
     $order_id = '1';
     $shipping_id = '1';
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_copyFromOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_copyFromOrderTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_copyFromOrderTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_copyFromOrderTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_copyFromOrderTest extends SC_Helper_Purchase_TestBase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testCopyFromOrder_すべてデフォルト設定にした場合_デフォルトの接頭辞・キーでコピーされる()
-  {
+  public function testCopyFromOrder_すべてデフォルト設定にした場合_デフォルトの接頭辞・キーでコピーされる() {
      $dest = array();
      $src = array(
@@ -94,6 +90,5 @@
   }
 
-  public function testCopyFromOrder_接頭辞・キーを設定した場合_指定の値でコピーされる()
-  {
+  public function testCopyFromOrder_接頭辞・キーを設定した場合_指定の値でコピーされる() {
      $dest = array();
      $src = array(
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_cleanupSessionTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_cleanupSessionTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_cleanupSessionTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_cleanupSessionTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_cleanupSessionTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpProductClass();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testCleanupSession__カートとセッションの配送情報が削除される()
-  {
+  public function testCleanupSession__カートとセッションの配送情報が削除される() {
     // 引数の準備
     $helper = new SC_Helper_Purchase();
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingPrefTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingPrefTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingPrefTest.php	(revision 22796)
@@ -32,14 +32,11 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_getShippingPrefTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_getShippingPrefTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
@@ -47,6 +44,5 @@
   /////////////////////////////////////////
   // TODO 要確認：引数の名前がおかしい（is_multipleではないはず）
-  public function testGetShippingPref_保有フラグがOFFの場合_全配送情報を取得する()
-  {
+  public function testGetShippingPref_保有フラグがOFFの場合_全配送情報を取得する() {
     $this->setUpShipping($this->getMultipleShipping());
 
@@ -57,6 +53,5 @@
   }
 
-  public function testGetShippingPref_保有フラグがONの場合_商品のある配送情報のみ取得する()
-  {
+  public function testGetShippingPref_保有フラグがONの場合_商品のある配送情報のみ取得する() {
     $this->setUpShipping($this->getMultipleShipping());
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderDetailTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderDetailTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderDetailTest.php	(revision 22796)
@@ -32,10 +32,8 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_getOrderDetailTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_getOrderDetailTest extends SC_Helper_Purchase_TestBase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrder();
@@ -44,12 +42,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testGetOrderDetail_存在しない受注IDを指定した場合_結果が空になる()
-  {
+  public function testGetOrderDetail_存在しない受注IDを指定した場合_結果が空になる() {
     $order_id = '9999';
 
@@ -60,6 +56,5 @@
   }
 
-  public function testGetOrderDetail_存在する受注IDを指定した場合_対応する受注詳細情報が取得できる()
-  {
+  public function testGetOrderDetail_存在する受注IDを指定した場合_対応する受注詳細情報が取得できる() {
     $order_id = '1001';
 
@@ -107,6 +102,5 @@
   }
 
-  public function testGetOrderDetail_ステータス取得フラグがOFFのの場合_ステータス以外の情報が取得できる()
-  {
+  public function testGetOrderDetail_ステータス取得フラグがOFFのの場合_ステータス以外の情報が取得できる() {
     $order_id = '1001';
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderTempTest.php	(revision 22796)
@@ -32,22 +32,18 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_getOrderTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_getOrderTempTest extends SC_Helper_Purchase_TestBase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrderTemp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testGetOrderTemp_存在しない受注IDを指定した場合_結果が空になる()
-  {
+  public function testGetOrderTemp_存在しない受注IDを指定した場合_結果が空になる() {
     $order_id = '9999';
 
@@ -58,6 +54,5 @@
   }
 
-  public function testGetOrderTemp_存在する受注IDを指定した場合_対応する結果が取得できる()
-  {
+  public function testGetOrderTemp_存在する受注IDを指定した場合_対応する結果が取得できる() {
     $order_temp_id = '1002';
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setShipmentItemTempForSoleTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setShipmentItemTempForSoleTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setShipmentItemTempForSoleTest.php	(revision 22796)
@@ -32,15 +32,12 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_setShipmentItemTempForSoleTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_setShipmentItemTempForSoleTest extends SC_Helper_Purchase_TestBase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
     $_SESSION['testResult'] = null;
@@ -48,6 +45,5 @@
 
   /////////////////////////////////////////
-  public function testSetShipmentItemTempForSole__いったん配送情報がクリアされたあと改めて指定のものが設定される()
-  {
+  public function testSetShipmentItemTempForSole__いったん配送情報がクリアされたあと改めて指定のものが設定される() {
     $helper = new SC_Helper_Purchase_setShipmentItemTempForSoleMock();
     $cartSession = new SC_CartSession_setShipmentItemTempForSoleMock();
@@ -72,13 +68,10 @@
 }
 
-class SC_Helper_Purchase_setShipmentItemTempForSoleMock extends SC_Helper_Purchase
-{
-  function clearShipmentItemTemp()
-  {
+class SC_Helper_Purchase_setShipmentItemTempForSoleMock extends SC_Helper_Purchase {
+  function clearShipmentItemTemp() {
     $_SESSION['testResult']['clearShipmentItemTemp'] = TRUE;
   }
 
-  function setShipmentItemTemp($shipping_id, $id, $quantity)
-  {
+  function setShipmentItemTemp($shipping_id, $id, $quantity) {
     $_SESSION['testResult']['shipmentItemTemp'][] = 
       array('shipping_id' => $shipping_id, 'id' => $id, 'quantity' => $quantity);
@@ -86,8 +79,6 @@
 }
 
-class SC_CartSession_setShipmentItemTempForSoleMock extends SC_CartSession
-{
-  function getCartList($key)
-  {
+class SC_CartSession_setShipmentItemTempForSoleMock extends SC_CartSession {
+  function getCartList($key) {
     return array(
       array('id'=>'1', 'quantity'=>'10'),
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setDownloadableFlgToTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setDownloadableFlgToTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setDownloadableFlgToTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_setDownloadableFlgToTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_setDownloadableFlgToTest extends SC_Helper_Purchase_TestBase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     // parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     // parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSetDownloadableFlgTo_販売価格が0円の場合_フラグがONになる()
-  {
+  public function testSetDownloadableFlgTo_販売価格が0円の場合_フラグがONになる() {
     $input = array(
       '1001' => array('price' => 0)
@@ -60,6 +56,5 @@
   }
 
-  public function testSetDownloadableFlgTo_ダウンロード期限内かつ入金日ありの場合_フラグがONになる()
-  {
+  public function testSetDownloadableFlgTo_ダウンロード期限内かつ入金日ありの場合_フラグがONになる() {
     $input = array(
       '1001' => array('price' => 1000, 'effective' => '1', 'payment_date' => '2012-12-12')
@@ -73,6 +68,5 @@
   }
 
-  public function testSetDownloadableFlgTo_ダウンロード期限内かつ入金日なしの場合_フラグがOFFになる()
-  {
+  public function testSetDownloadableFlgTo_ダウンロード期限内かつ入金日なしの場合_フラグがOFFになる() {
     $input = array(
       '1001' => array('price' => 1000, 'effective' => '1', 'payment_date' => null)
@@ -86,6 +80,5 @@
   }
 
-  public function testSetDownloadableFlgTo_ダウンロード期限外かつ入金日ありの場合_フラグがOFFになる()
-  {
+  public function testSetDownloadableFlgTo_ダウンロード期限外かつ入金日ありの場合_フラグがOFFになる() {
     $input = array(
       '1001' => array('price' => 1000, 'effective' => '0', 'payment_date' => '2012-12-12')
@@ -99,6 +92,5 @@
   }
 
-  public function testSetDownloadableFlgTo_ダウンロード期限外かつ入金日なしの場合_フラグがOFFになる()
-  {
+  public function testSetDownloadableFlgTo_ダウンロード期限外かつ入金日なしの場合_フラグがOFFになる() {
     $input = array(
       '1001' => array('price' => 1000, 'effective' => '0', 'payment_date' => null)
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_clearShipmentItemTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_clearShipmentItemTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_clearShipmentItemTempTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_clearShipmentItemTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_clearShipmentItemTempTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testClearShipmentItem_配送先ID未指定の場合_全ての配送商品がクリアされる()
-  {
+  public function testClearShipmentItem_配送先ID未指定の場合_全ての配送商品がクリアされる() {
     $this->setUpShipping($this->getMultipleShipping());
 
@@ -61,6 +57,5 @@
   }
 
-  public function testClearShipmentItem_配送先ID指定の場合_指定したIDの配送商品がクリアされる()
-  {
+  public function testClearShipmentItem_配送先ID指定の場合_指定したIDの配送商品がクリアされる() {
     $this->setUpShipping($this->getMultipleShipping());
 
@@ -76,6 +71,5 @@
   }
 
-  public function testClearShipmentItem_存在しないIDを指定した場合_何も変更されない()
-  {
+  public function testClearShipmentItem_存在しないIDを指定した場合_何も変更されない() {
     $this->setUpShipping($this->getMultipleShipping());
 
@@ -91,6 +85,5 @@
   }
 
-  public function testClearShipmentItem_商品情報が配列でない場合_何も変更されない()
-  {
+  public function testClearShipmentItem_商品情報が配列でない場合_何も変更されない() {
     $this->setUpShipping($this->getMultipleShipping());
     // 内容を配列でないように変更
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_completeOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_completeOrderTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_completeOrderTest.php	(revision 22796)
@@ -32,13 +32,10 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_completeOrderTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_completeOrderTest extends SC_Helper_Purchase_TestBase {
 
   private $helper;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
-    $this->setUpOrder();
     $this->setUpOrderTemp(); // order_temp_id = '1001'
     $this->setUpShipping();
@@ -56,6 +53,5 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
@@ -63,6 +59,5 @@
   /////////////////////////////////////////
   // 適切なfunctionが呼ばれていることのみ確認
-  public function testCompleteOrder_顧客IDが指定されている場合_購入日が更新される()
-  {
+  public function testCompleteOrder_顧客IDが指定されている場合_購入日が更新される() {
     $_SESSION['customer']['customer_id'] = '1002'; // 顧客ID
     $this->helper->completeOrder(ORDER_DELIV);
@@ -101,6 +96,5 @@
   }
 
-  public function testCompleteOrder_顧客IDが指定されていない場合_特にエラーなく修了できる()
-  {
+  public function testCompleteOrder_顧客IDが指定されていない場合_特にエラーなく修了できる() {
     $this->helper->completeOrder(); // デフォルトのステータス(NEW)
 
@@ -140,20 +134,16 @@
 }
 
-class SC_Helper_Purchase_completeOrderMock extends SC_Helper_Purchase
-{
+class SC_Helper_Purchase_completeOrderMock extends SC_Helper_Purchase{
 
-  function verifyChangeCart($uniqId, $objCartSession)
-  {
+  function verifyChangeCart($uniqId, $objCartSession){
     $_SESSION['testResult']['verifyChangeCart'] = array('uniqId'=>$uniqId);
   }
 
-  function getOrderTemp($uniqId)
-  {
+  function getOrderTemp($uniqId) {
     $_SESSION['testResult']['getOrderTemp'] = array('uniqId'=>$uniqId);
     return parent::getOrderTemp($uniqId);
   }
 
-  function registerOrderComplete($orderTemp, $objCartSession, $cartKey)
-  {
+  function registerOrderComplete($orderTemp, $objCartSession, $cartKey) {
     $_SESSION['testResult']['registerOrderComplete'] = array(
       'order_temp_id' => $orderTemp['order_temp_id'],
@@ -164,6 +154,5 @@
   }
 
-  function registerShipmentItem($order_id, $shipping_id, $shipment_item)
-  {
+  function registerShipmentItem($order_id, $shipping_id, $shipment_item) {
     $_SESSION['testResult']['registerShipmentItem'][] = array(
       'order_id' => $order_id,
@@ -173,6 +162,5 @@
   }
 
-  function registerShipping($order_id, $shipping_temp)
-  {
+  function registerShipping($order_id, $shipping_temp) {
     $_SESSION['testResult']['registerShipping'] = array(
       'order_id' => $order_id
@@ -180,6 +168,5 @@
   }
 
-  function cleanupSession($order_id, $objCartSesion, $objCustomer, $cartKey)
-  {
+  function cleanupSession($order_id, $objCartSesion, $objCustomer, $cartKey) {
     $_SESSION['testResult']['cleanupSession'] = array(
       'order_id' => $order_id,
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getShippingTempTest.php	(revision 22796)
@@ -32,20 +32,16 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_getShippingTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_getShippingTempTest extends SC_Helper_Purchase_TestBase {
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testGetShippingTemp_保有フラグがOFFの場合_セッション情報を取得する()
-  {
+  public function testGetShippingTemp_保有フラグがOFFの場合_セッション情報を取得する() {
     $this->setUpShipping($this->getMultipleShipping());
 
@@ -56,6 +52,5 @@
   }
 
-  public function testGetShippingTemp_保有フラグがONの場合_商品のある情報のみ取得する()
-  {
+  public function testGetShippingTemp_保有フラグがONの場合_商品のある情報のみ取得する() {
     $this->setUpShipping($this->getMultipleShipping());
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setShipmentItemTempTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setShipmentItemTempTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setShipmentItemTempTest.php	(revision 22796)
@@ -32,10 +32,8 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_setShipmentItemTempTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_setShipmentItemTempTest extends SC_Helper_Purchase_TestBase {
   private $helper;
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpProductClass();
@@ -48,12 +46,10 @@
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testSetShipmentItemTemp_製品情報が既に存在する場合_存在する情報が価格に反映される()
-  {
+  public function testSetShipmentItemTemp_製品情報が既に存在する場合_存在する情報が価格に反映される() {
     $this->helper->setShipmentItemTemp('1001', '1001', 10);
 
@@ -71,6 +67,5 @@
   }
 
-  public function testSetShipmentItemTemp_製品情報が存在しない場合_DBから取得した値が反映される()
-  {
+  public function testSetShipmentItemTemp_製品情報が存在しない場合_DBから取得した値が反映される() {
     $this->helper->setShipmentItemTemp('1001', '1002', 10);
 
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerShipmentItemTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerShipmentItemTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerShipmentItemTest.php	(revision 22796)
@@ -32,21 +32,17 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_registerShipmentItemTest extends SC_Helper_Purchase_TestBase
-{
-
-  protected function setUp()
-  {
+class SC_Helper_Purchase_registerShipmentItemTest extends SC_Helper_Purchase_TestBase {
+
+  protected function setUp() {
     parent::setUp();
     $this->setUpShipmentItem();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testRegisterShipmentItem_製品クラスIDが入っていない場合_登録を行わない()
-  {
+  public function testRegisterShipmentItem_製品クラスIDが入っていない場合_登録を行わない() {
     // 引数の設定
     $order_id = '1';
@@ -79,6 +75,5 @@
   }
 
-  public function testRegisterShipmentItem_製品名等が指定されている場合_指定された値で登録を行う()
-  {
+  public function testRegisterShipmentItem_製品名等が指定されている場合_指定された値で登録を行う() {
     // 引数の設定
     $order_id = '1';
@@ -120,6 +115,5 @@
   }
 
-  public function testRegisterShipmentItem_製品名等が指定されていない場合_DBからマスタ情報を取得して登録を行う()
-  {
+  public function testRegisterShipmentItem_製品名等が指定されていない場合_DBからマスタ情報を取得して登録を行う() {
     // 引数の設定
     $order_id = '1';
@@ -164,6 +158,5 @@
   }
 
-  public function testRegisterShipmentItem_DBに存在しないカラムを指定した場合_エラーなく登録できる()
-  {
+  public function testRegisterShipmentItem_DBに存在しないカラムを指定した場合_エラーなく登録できる() {
     // 引数の設定
     $order_id = '1';
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderTest.php	(revision 22796)
@@ -32,22 +32,18 @@
  * @version $Id$
  */
-class SC_Helper_Purchase_getOrderTest extends SC_Helper_Purchase_TestBase
-{
+class SC_Helper_Purchase_getOrderTest extends SC_Helper_Purchase_TestBase {
 
 
-  protected function setUp()
-  {
+  protected function setUp() {
     parent::setUp();
     $this->setUpOrder();
   }
 
-  protected function tearDown()
-  {
+  protected function tearDown() {
     parent::tearDown();
   }
 
   /////////////////////////////////////////
-  public function testGetOrder_存在しない受注IDを指定した場合_結果が空になる()
-  {
+  public function testGetOrder_存在しない受注IDを指定した場合_結果が空になる() {
     $order_id = '9999';
 
@@ -58,6 +54,5 @@
   }
 
-  public function testGetOrder_存在しない顧客IDを指定した場合_結果が空になる()
-  {
+  public function testGetOrder_存在しない顧客IDを指定した場合_結果が空になる() {
     $order_id = '1002';
     $customer_id = '9999';
@@ -69,6 +64,5 @@
   }
 
-  public function testGetOrder_顧客IDを指定しなかった場合_受注IDに対応する結果が取得できる()
-  {
+  public function testGetOrder_顧客IDを指定しなかった場合_受注IDに対応する結果が取得できる() {
     $order_id = '1002';
 
@@ -84,6 +78,5 @@
   }
 
-  public function testGetOrder_存在する顧客IDを指定した場合_対応する結果が取得できる()
-  {
+  public function testGetOrder_存在する顧客IDを指定した場合_対応する結果が取得できる() {
     $order_id = '1002';
     $customer_id = '1002';
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_cancelOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_cancelOrderTest.php	(revision 22567)
+++ 	(revision )
@@ -1,185 +1,0 @@
-<?php
-
-$HOME = realpath(dirname(__FILE__)) . "/../../../..";
-require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
-/*
- * This file is part of EC-CUBE
- *
- * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- */
-
-/**
- * SC_Helper_Purchase::cancelOrder()のテストクラス.
- *
- * @author Hiroko Tamagawa
- * @version $Id$
- */
-class SC_Helper_Purchase_cancelOrderTest extends SC_Helper_Purchase_TestBase
-{
-
-  private $helper;
-
-  protected function setUp()
-  {
-    parent::setUp();
-    $this->setUpProductClass();
-    $this->helper = new SC_Helper_Purchase_cancelOrderMock();
-  }
-
-  protected function tearDown()
-  {
-    parent::tearDown();
-  }
-
-  /////////////////////////////////////////
-  public function testCancelOrder_デフォルトの引数で呼び出した場合_製品クラスのデータが更新される()
-  {
-    $order_id = '1001';
-    $this->objQuery->begin();
-
-    $this->helper->cancelOrder($order_id);
-
-    $this->actual['testResult'] = $_SESSION['testResult'];
-    $this->actual['productClass'] = $this->objQuery->select(
-      'stock', 'dtb_products_class',
-      'product_class_id in (?, ?)', array('1001', '1002')
-    );
-    $this->expected = array(
-      'testResult' => array(
-        'registerOrder' => array(
-          'order_id' => '1001',
-          'params' => array(
-            'status' => ORDER_CANCEL
-          )
-        ),
-        'getOrderDetail' => array(
-          'order_id' => '1001'
-        )
-      ),
-      'productClass' => array(
-        array('stock' => '105'),
-        array('stock' => '51')
-      )
-    );
-    $this->verify();
-  }
-
-  // 実際にトランザクションを開始したかどうかはテストできないが、
-  // 問題なく処理が完了することのみ確認
-  public function testCancelOrder_トランザクションが開始していない場合_内部で開始する()
-  {
-    $order_id = '1001';
-
-    $this->helper->cancelOrder($order_id, ORDER_NEW);
-
-    $this->actual['testResult'] = $_SESSION['testResult'];
-    $this->actual['productClass'] = $this->objQuery->select(
-      'stock', 'dtb_products_class',
-      'product_class_id in (?, ?)', array('1001', '1002')
-    );
-    $this->expected = array(
-      'testResult' => array(
-        'registerOrder' => array(
-          'order_id' => '1001',
-          'params' => array(
-            'status' => ORDER_NEW
-          )
-        ),
-        'getOrderDetail' => array(
-          'order_id' => '1001'
-        )
-      ),
-      'productClass' => array(
-        array('stock' => '105'),
-        array('stock' => '51')
-      )
-    );
-
-    $this->verify();
-  }
-
-  public function testCancelOrder_削除フラグが立っている場合_DB更新時に削除フラグが立てられる()
-  {
-    $order_id = '1001';
-    $this->objQuery->begin();
-
-    $this->helper->cancelOrder($order_id, ORDER_DELIV, true);
-
-    $this->actual['testResult'] = $_SESSION['testResult'];
-    $this->actual['productClass'] = $this->objQuery->select(
-      'stock', 'dtb_products_class',
-      'product_class_id in (?, ?)', array('1001', '1002')
-    );
-    $this->expected = array(
-      'testResult' => array(
-        'registerOrder' => array(
-          'order_id' => '1001',
-          'params' => array(
-            'status' => ORDER_DELIV,
-            'del_flg' => '1'
-          )
-        ),
-        'getOrderDetail' => array(
-          'order_id' => '1001'
-        )
-      ),
-      'productClass' => array(
-        array('stock' => '105'),
-        array('stock' => '51')
-      )
-    );
-
-    $this->verify();
-  }
-
-  //////////////////////////////////////////
-
-}
-
-class SC_Helper_Purchase_cancelOrderMock extends SC_Helper_Purchase
-{
-
-  function registerOrder($order_id, $params)
-  {
-    $_SESSION['testResult']['registerOrder'] = array(
-      'order_id' => $order_id,
-      'params' => $params
-    );
-  }
-
-  function getOrderDetail($order_id)
-  {
-    $_SESSION['testResult']['getOrderDetail'] = array(
-      'order_id' => $order_id
-    );
-
-    return array(
-      array(
-        'product_class_id' => '1001',
-        'quantity' => '5'
-      ),
-      array(
-        'product_class_id' => '1002',
-        'quantity' => '1'
-      )
-    );
-  }
-}
-
-
Index: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_rollbackOrderTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_rollbackOrderTest.php	(revision 22567)
+++ 	(revision )
@@ -1,165 +1,0 @@
-<?php
-
-$HOME = realpath(dirname(__FILE__)) . "/../../../..";
-require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
-/*
- * This file is part of EC-CUBE
- *
- * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- */
-
-/**
- * SC_Helper_Purchase::rollbackOrder()のテストクラス.
- *
- * @author Hiroko Tamagawa
- * @version $Id$
- */
-class SC_Helper_Purchase_rollbackOrderTest extends SC_Helper_Purchase_TestBase
-{
-
-  private $helper;
-
-  protected function setUp()
-  {
-    parent::setUp();
-
-    $this->helper = new SC_Helper_Purchase_rollbackOrderMock();
-  }
-
-  protected function tearDown()
-  {
-    parent::tearDown();
-  }
-
-  /////////////////////////////////////////
-  public function testRollbackOrder_デフォルトの引数で呼び出した場合_カートの状態をロールバックして元に戻る()
-  {
-    $this->objQuery->begin();
-    $order_id = '1001';
-
-    $uniqid = $this->helper->rollbackOrder($order_id);
-
-    $this->actual['testResult'] = $this->helper->testResult;
-    $this->actual['siteRegist'] = $_SESSION['site']['regist_success'];
-    $this->expected = array(
-      'testResult' => array(
-        'cancelOrder' => array(
-          'order_id' => '1001',
-          'orderStatus' => ORDER_CANCEL,
-          'is_delete' => false
-        ),
-        'getOrderTempByOrderId' => array(
-          'order_id' => '1001'
-        ),
-        'saveOrderTemp' => array(
-          'uniqid' => $uniqid,
-          'arrOrderTemp' => array(
-            'customer_id' => '2001',
-            'del_flg' => '0'
-          )
-        ),
-        'verifyChangeCart' => array(
-          'uniqid' => $uniqid
-        )
-      ),
-      'siteRegist' => true
-    );
-    $this->verify();
-  }
-
-  /**
-   * 実際にトランザクションを開始したかどうかはテストできないが、
-   * 問題なく処理が完了することのみ確認
-   */
-  public function testRollbackOrder_トランザクションが開始していない場合_内部で開始する()
-  {
-    $order_id = '1001';
-
-    $uniqid = $this->helper->rollbackOrder($order_id, ORDER_DELIV, true);
-
-    $this->actual['testResult'] = $this->helper->testResult;
-    $this->actual['siteRegist'] = $_SESSION['site']['regist_success'];
-    $this->expected = array(
-      'testResult' => array(
-        'cancelOrder' => array(
-          'order_id' => '1001',
-          'orderStatus' => ORDER_DELIV,
-          'is_delete' => true
-        ),
-        'getOrderTempByOrderId' => array(
-          'order_id' => '1001'
-        ),
-        'saveOrderTemp' => array(
-          'uniqid' => $uniqid,
-          'arrOrderTemp' => array(
-            'customer_id' => '2001',
-            'del_flg' => '0'
-          )
-        ),
-        'verifyChangeCart' => array(
-          'uniqid' => $uniqid
-        )
-      ),
-      'siteRegist' => true
-    );
-    $this->verify();
-  }
-  //////////////////////////////////////////
-
-}
-
-class SC_Helper_Purchase_rollbackOrderMock extends SC_Helper_Purchase
-{
-  public $testResult = array();
-
-  function cancelOrder($order_id, $orderStatus, $is_delete)
-  {
-    $this->testResult['cancelOrder'] = array(
-      'order_id' => $order_id,
-      'orderStatus' => $orderStatus,
-      'is_delete' => $is_delete
-    );
-  }
-
-  function getOrderTempByOrderId($order_id)
-  {
-    $this->testResult['getOrderTempByOrderId'] = array(
-      'order_id' => $order_id
-    );
-    return array(
-      'customer_id' => '2001'
-    );
-  }
-
-  function saveOrderTemp($uniqid, $arrOrderTemp, $objCustomer)
-  {
-    $this->testResult['saveOrderTemp'] = array(
-      'uniqid' => $uniqid,
-      'arrOrderTemp' => $arrOrderTemp
-    );
-  }
-
-  function verifyChangeCart($uniqid, $objCartSession)
-  {
-    $this->testResult['verifyChangeCart'] = array(
-      'uniqid' => $uniqid
-    );
-  }
-}
-
Index: branches/version-2_12-dev/tests/class/test/util/User_Utils.php
===================================================================
--- branches/version-2_12-dev/tests/class/test/util/User_Utils.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/test/util/User_Utils.php	(revision 22796)
@@ -5,6 +5,5 @@
  *
  */
-class User_Utils
-{
+class User_Utils {
 
   /**
@@ -14,6 +13,5 @@
    * @param deviceType  端末種別ID
    */
-  public static function setDeviceType($deviceType)
-  {
+  public static function setDeviceType($deviceType) {
     SC_Display_Ex::setDummyDevice($deviceType);
   }
@@ -25,6 +23,5 @@
    * @param isLogin true:ログインしている、false:ログインしていない
    */
-  public static function setLoginState($isLogin, $customer = null, $objQuery = null)
-  {
+  public static function setLoginState($isLogin, $customer = null, $objQuery = null) {
     if (!$isLogin) {
       $_SESSION['customer']['customer_id'] = null;
@@ -42,6 +39,5 @@
    * ユーザ情報を外部から設定しなかった場合のデフォルト値を取得します。
    */
-  private static function getDefaultCustomer()
-  {
+  private static function getDefaultCustomer() {
     $arrValue['customer_id'] = '999999998';
     $arrValue['name01'] = '苗字';
Index: branches/version-2_12-dev/tests/class/test/util/Test_Utils.php
===================================================================
--- branches/version-2_12-dev/tests/class/test/util/Test_Utils.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/test/util/Test_Utils.php	(revision 22796)
@@ -29,6 +29,5 @@
  * @version $Id$
  */
-class Test_Utils
-{
+class Test_Utils {
 
   /**
@@ -41,6 +40,5 @@
    * @return 指定したキーのみを持つ連想配列
    */
-  public static function mapArray($input_array, $map_keys)
-  {
+  public static function mapArray($input_array, $map_keys) {
     $output_array = array();
     foreach ($map_keys as $index => $map_key) {
@@ -60,6 +58,5 @@
    * @return 指定のキーだけを抜き出した配列
    */
-  public static function mapCols($input_array, $key)
-  {
+  public static function mapCols($input_array, $key) {
     $output_array = array();
     foreach ($input_array as $data) {
@@ -78,6 +75,5 @@
    * @param new_array 追加要素を持つ配列
    */
-  public static function array_append(&$orig_array, $new_array)
-  {
+  public static function array_append(&$orig_array, $new_array) {
     foreach ($new_array as $element) {
       $orig_array[] = $element;
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getDayTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getDayTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getDayTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getDayTest extends Common_TestCase
-{
+class SC_Date_getDayTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetDay_要素の数が31の配列を返す()
-    {
+    public function testGetDay_要素の数が31の配列を返す() {
         $this->expected = 31;
         $this->actual = count($this->objDate->getDay());
@@ -49,6 +45,5 @@
     }
 
-    public function testGetDay_要素の最低値が1の配列を返す()
-    {
+    public function testGetDay_要素の最低値が1の配列を返す() {
         $this->expected = 1;
         $this->actual = min($this->objDate->getDay());
@@ -57,6 +52,5 @@
     }
 
-    public function testGetDay_要素の最大値が31の配列を返す()
-    {
+    public function testGetDay_要素の最大値が31の配列を返す() {
         $this->expected = 31;
         $this->actual = max($this->objDate->getDay());
@@ -65,6 +59,5 @@
     }
 
-    public function testGetDay_TRUEを与えた場合要素の数が32の配列を返す()
-    {
+    public function testGetDay_TRUEを与えた場合要素の数が32の配列を返す() {
         $this->expected = 32;
         $this->actual = count($this->objDate->getDay(true));
@@ -73,6 +66,5 @@
     }
 
-    public function testGetDay_TRUEを与えた場合ーー含まれるの配列を返す()
-    {
+    public function testGetDay_TRUEを与えた場合ーー含まれるの配列を返す() {
         $result = in_array('--', $this->objDate->getDay(true));
 
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getHourTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getHourTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getHourTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getHourTest extends Common_TestCase
-{
+class SC_Date_getHourTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetHour_24の配列を返す()
-    {
+    public function testGetHour_24の配列を返す() {
         $this->expected = 24;
         $this->actual = count($this->objDate->getHour());
@@ -49,6 +45,5 @@
     }
 
-    public function testGetHour_要素の最低値が0の配列を返す()
-    {
+    public function testGetHour_要素の最低値が0の配列を返す() {
         $this->expected = 0;
         $this->actual = min($this->objDate->getHour());
@@ -57,6 +52,5 @@
     }
 
-    public function testGetHour_要素の最大値が23の配列を返す()
-    {
+    public function testGetHour_要素の最大値が23の配列を返す() {
         $this->expected = 23;
         $this->actual = max($this->objDate->getHour());
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getYearTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getYearTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getYearTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getYearTest extends Common_TestCase
-{
+class SC_Date_getYearTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
   
-    public function testGetYear_要素の数が4の配列を返す()
-    {
+    public function testGetYear_要素の数が4の配列を返す() {
         $this->expected = 4;
         $this->actual = count($this->objDate->getYear());
@@ -49,6 +45,5 @@
     }
     
-    public function testGetYear_最小値が今年の配列を返す()
-    {
+    public function testGetYear_最小値が今年の配列を返す() {
         $this->expected = DATE('Y');
         $this->actual = min($this->objDate->getYear());
@@ -57,6 +52,5 @@
     }
     
-    public function testGetYear_最低値が引数の年の配列を返す()
-    {
+    public function testGetYear_最低値が引数の年の配列を返す() {
         $this->expected = '2007';
         $this->actual = min($this->objDate->getYear('2007'));
@@ -65,6 +59,5 @@
     }
     
-    public function testGetYear_最低値がメンバー変数の年の配列を返す()
-    {
+    public function testGetYear_最低値がメンバー変数の年の配列を返す() {
         $this->expected = '2004';
         $this->objDate->setStartYear('2004');
@@ -74,6 +67,5 @@
     }
     
-    public function testGetYear_最大値が3年後の配列を返す()
-    {
+    public function testGetYear_最大値が3年後の配列を返す() {
         $this->expected = DATE('Y')+3;
         $this->actual = max($this->objDate->getYear());
@@ -82,6 +74,5 @@
     }
     
-    public function testGetYear_最大値がメンバ変数の配列を返す()
-    {
+    public function testGetYear_最大値がメンバ変数の配列を返す() {
         $this->expected = '2020';
         $this->objDate->setEndYear('2020');
@@ -91,12 +82,10 @@
     }
     
-    public function testGetYear_デフォルト値が含まれる配列を返す()
-    {
+    public function testGetYear_デフォルト値が含まれる配列を返す() {
         $result = in_array('----', $this->objDate->getYear(DATE('Y'), TRUE));
         $this->assertTrue($result, "デフォルト値");
     }
     
-    public function testGetYear_デフォルト値の引数に年を指定した配列を返す()
-    {
+    public function testGetYear_デフォルト値の引数に年を指定した配列を返す() {
         $year = date('Y');
         $this->expected = array( $year => $year, $year+1 => $year+1
@@ -107,6 +96,5 @@
     }
 
-    public function testGetYear_引数に指定したキーがデフォルト値となる配列を返す()
-    {
+    public function testGetYear_引数に指定したキーがデフォルト値となる配列を返す() {
         $this->expected = 'default';
         $return = $this->objDate->getYear(DATE('Y'), TRUE, 'default');
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getZeroYearTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getZeroYearTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getZeroYearTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getZeroYearTest extends Common_TestCase
-{
+class SC_Date_getZeroYearTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
   
-    public function testGetZeroYear_要素の数が4の配列を返す()
-    {
+    public function testGetZeroYear_要素の数が4の配列を返す() {
         $this->expected = 4;
         $this->actual = count($this->objDate->getZeroYear());
@@ -48,6 +44,5 @@
     }
     
-    public function testGetZeroYear_最小値が2桁表記の今年の配列を返す()
-    {
+    public function testGetZeroYear_最小値が2桁表記の今年の配列を返す() {
         $this->expected = DATE('y');
         $this->actual = min($this->objDate->getZeroYear());
@@ -55,6 +50,5 @@
     }
     
-    public function testGetZeroYear_最低値が引数の年の2桁表記の配列を返す()
-    {
+    public function testGetZeroYear_最低値が引数の年の2桁表記の配列を返す() {
         $this->expected = '07';
         $this->actual = min($this->objDate->getZeroYear('2007'));
@@ -63,6 +57,5 @@
     }
     
-    public function testGetZeroYear_最低値がメンバー変数の年の2桁表記の配列を返す()
-    {
+    public function testGetZeroYear_最低値がメンバー変数の年の2桁表記の配列を返す() {
         $this->expected = '04';
         $this->objDate->setStartYear('2004');
@@ -72,6 +65,5 @@
     }
     
-    public function testGetZeroYear_最大値が3年後の2桁表記の配列を返す()
-    {
+    public function testGetZeroYear_最大値が3年後の2桁表記の配列を返す() {
         $this->expected = DATE('y')+3;
         $this->actual = max($this->objDate->getZeroYear());
@@ -80,6 +72,5 @@
     }
     
-    public function testGetZeroYear_最大値がメンバ変数の2桁表記の配列を返す()
-    {
+    public function testGetZeroYear_最大値がメンバ変数の2桁表記の配列を返す() {
         $this->expected = '20';
         $this->objDate->setEndYear('2020');
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_AccessorTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_AccessorTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_AccessorTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_AccessorTest extends Common_TestCase
-{
+class SC_Date_AccessorTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex('2010','2014');
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetStartYear_startYearの値を取得する()
-    {
+    public function testGetStartYear_startYearの値を取得する() {
         $this->expected = '2010';
         $this->actual = $this->objDate->getStartYear();
@@ -49,6 +45,5 @@
     }
 
-    public function testGetEndYear_endYearの値を取得する()
-    {
+    public function testGetEndYear_endYearの値を取得する() {
         $this->expected = '2014';
         $this->actual = $this->objDate->getEndYear();
@@ -57,6 +52,5 @@
     }
 
-    public function testsetMonth_monthの値を設定する()
-    {
+    public function testsetMonth_monthの値を設定する() {
         $this->expected = '9';
         $this->objDate->setMonth('9');
@@ -66,6 +60,5 @@
     }
     
-    public function testsetDay_dayの値を設定する()
-    {
+    public function testsetDay_dayの値を設定する() {
         $this->expected = '28';
         $this->objDate->setDay('28');
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMinutesTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMinutesTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMinutesTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getMinutesTest extends Common_TestCase
-{
+class SC_Date_getMinutesTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetMinutes_要素の数が60の配列を返す()
-    {
+    public function testGetMinutes_要素の数が60の配列を返す() {
         $this->expected = 60;
         $this->actual = count($this->objDate->getMinutes());
@@ -49,6 +45,5 @@
     }
 
-    public function testGetMinutes_要素の最低値が0の配列を返す()
-    {
+    public function testGetMinutes_要素の最低値が0の配列を返す() {
         $this->expected = 0;
         $this->actual = min($this->objDate->getMinutes());
@@ -57,6 +52,5 @@
     }
 
-    public function testGetMinutes_要素の最大値が59の配列を返す()
-    {
+    public function testGetMinutes_要素の最大値が59の配列を返す() {
         $this->expected = 59;
         $this->actual = max($this->objDate->getMinutes());
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMonthTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMonthTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMonthTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getMonthTest extends Common_TestCase
-{
+class SC_Date_getMonthTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetMonth_要素の数が12の配列を返す()
-    {
+    public function testGetMonth_要素の数が12の配列を返す() {
         $this->expected = 12;
         $this->actual = count($this->objDate->getMonth());
@@ -49,6 +45,5 @@
     }
 
-    public function testGetMonth_要素の最低値が1の配列を返す()
-    {
+    public function testGetMonth_要素の最低値が1の配列を返す() {
         $this->expected = 1;
         $this->actual = min($this->objDate->getMonth());
@@ -57,6 +52,5 @@
     }
 
-    public function testGetMonth_要素の最大値が12の配列を返す()
-    {
+    public function testGetMonth_要素の最大値が12の配列を返す() {
         $this->expected = 12;
         $this->actual = max($this->objDate->getMonth());
@@ -65,6 +59,5 @@
     }
 
-    public function testGetMonth_TRUEを与えた場合要素の数が13の配列を返す()
-    {
+    public function testGetMonth_TRUEを与えた場合要素の数が13の配列を返す() {
         $this->expected = 13;
         $this->actual = count($this->objDate->getMonth(true));
@@ -73,6 +66,5 @@
     }
 
-    public function testGetMonth_TRUEを与えた場合ーー含まれるの配列を返す()
-    {
+    public function testGetMonth_TRUEを与えた場合ーー含まれるの配列を返す() {
         $result = in_array('--', $this->objDate->getMonth(true));
 
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getZeroMonthTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getZeroMonthTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getZeroMonthTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getZeroMonthTest extends Common_TestCase
-{
+class SC_Date_getZeroMonthTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetZeroMonth_要素の数が12の配列を返す()
-    {
+    public function testGetZeroMonth_要素の数が12の配列を返す() {
         $this->expected = 12;
         $this->actual = count($this->objDate->getZeroMonth());
@@ -49,6 +45,5 @@
     }
 
-    public function testGetZeroMonth_0をつけた月の配列を返す()
-    {
+    public function testGetZeroMonth_0をつけた月の配列を返す() {
         $this->expected = array('01'=>'01','02'=>'02','03'=>'03'
                                 ,'04'=>'04','05'=>'05','06'=>'06'
Index: branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMinutesIntervalTest.php
===================================================================
--- branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMinutesIntervalTest.php	(revision 22567)
+++ branches/version-2_12-dev/tests/class/SC_Date/SC_Date_getMinutesIntervalTest.php	(revision 22796)
@@ -25,15 +25,12 @@
 require_once($HOME . "/tests/class/Common_TestCase.php");
 
-class SC_Date_getMinutesIntervalTest extends Common_TestCase
-{
+class SC_Date_getMinutesIntervalTest extends Common_TestCase {
 
-    protected function setUp()
-    {
+    protected function setUp() {
         parent::setUp();
         $this->objDate = new SC_Date_Ex();
     }
 
-    protected function tearDown()
-    {
+    protected function tearDown() {
         parent::tearDown();
     }
@@ -41,6 +38,5 @@
     /////////////////////////////////////////
 
-    public function testGetMinutesInterval_要素が00と30の配列を返す()
-    {
+    public function testGetMinutesInterval_要素が00と30の配列を返す() {
         $this->expected = array('00'=>'00', '30'=>'30');
         $this->actual = $this->objDate->getMinutesInterval();
