Changeset 22193


Ignore:
Timestamp:
2013/01/03 18:48:25 (8 years ago)
Author:
shift_hiroko.tamagawa
Message:

#1977 SC_Utilsの単体テストを追加

Location:
branches/version-2_12-dev/tests/class
Files:
9 added
1 edited

Legend:

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

    r22145 r22193  
    6666    return $output_array; 
    6767  } 
     68 
     69  /** 
     70   * 配列に別の配列をappendします。 
     71   * $orig_arrayが直接変更されます。 
     72   *  
     73   * @static 
     74   * @param orig_array 追加先の配列 
     75   * @param new_array 追加要素を持つ配列 
     76   */ 
     77  public static function array_append(&$orig_array, $new_array) { 
     78    foreach ($new_array as $element) { 
     79      $orig_array[] = $element; 
     80    } 
     81  } 
    6882} 
    6983 
Note: See TracChangeset for help on using the changeset viewer.