Changeset 22567 for branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetRandomStringTest.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_sfGetRandomStringTest.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class SC_Utils_sfGetRandomStringTest extends Common_TestCase { 34 class SC_Utils_sfGetRandomStringTest 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 } … … 44 47 ///////////////////////////////////////// 45 48 // ランダムな文字列取得なので、文字列長のみ確認します。 46 public function testSfGetRandomString_文字列長未指定の場合_長さ1の文字列が取得できる() { 49 public function testSfGetRandomString_文字列長未指定の場合_長さ1の文字列が取得できる() 50 { 47 51 $this->expected = 1; 48 52 $this->actual = strlen(SC_Utils::sfGetRandomString()); … … 51 55 } 52 56 53 public function testSfGetRandomString_文字列長指定ありの場合_指定した長さの文字列が取得できる() { 57 public function testSfGetRandomString_文字列長指定ありの場合_指定した長さの文字列が取得できる() 58 { 54 59 $this->expected = 10; 55 60 $this->actual = strlen(SC_Utils::sfGetRandomString(10));
Note: See TracChangeset
for help on using the changeset viewer.