Changeset 22567 for branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_repeatStrWithSeparatorTest.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_repeatStrWithSeparatorTest.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class SC_Utils_repeatStrWithSeparatorTest extends Common_TestCase { 34 class SC_Utils_repeatStrWithSeparatorTest extends Common_TestCase 35 { 35 36 36 protected function setUp() { 37 protected function setUp() 38 { 37 39 parent::setUp(); 38 40 } 39 41 40 protected function tearDown() { 42 protected function tearDown() 43 { 41 44 parent::tearDown(); 42 45 } 43 46 44 47 ///////////////////////////////////////// 45 public function testRepeatStrWithSeparator_反復回数が0回の場合_結果が0バイト文字列になる() { 48 public function testRepeatStrWithSeparator_反復回数が0回の場合_結果が0バイト文字列になる() 49 { 46 50 $this->expected = ''; 47 51 $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 0, '#'); … … 50 54 } 51 55 52 public function testRepeatStrWithSeparator_反復回数が1回の場合_区切り文字が入らない() { 56 public function testRepeatStrWithSeparator_反復回数が1回の場合_区切り文字が入らない() 57 { 53 58 $this->expected = 'ECサイト'; 54 59 $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 1, '#'); … … 57 62 } 58 63 59 public function testRepeatStrWithSeparator_反復回数が2回以上の場合_区切り文字が入って出力される() { 64 public function testRepeatStrWithSeparator_反復回数が2回以上の場合_区切り文字が入って出力される() 65 { 60 66 $this->expected = 'ECサイト#ECサイト#ECサイト#ECサイト#ECサイト'; 61 67 $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 5, '#'); … … 64 70 } 65 71 66 public function testRepeatStrWithSeparator_区切り文字が未指定の場合_カンマ区切りとなる() { 72 public function testRepeatStrWithSeparator_区切り文字が未指定の場合_カンマ区切りとなる() 73 { 67 74 $this->expected = 'ECサイト,ECサイト,ECサイト'; 68 75 $this->actual = SC_Utils::repeatStrWithSeparator('ECサイト', 3);
Note: See TracChangeset
for help on using the changeset viewer.