source: branches/version-2_13-dev/tests/class/util/SC_Utils/SC_Utils_sfGetEnabledTest.php @ 22857

Revision 22857, 1.9 KB checked in by Seasoft, 11 years ago (diff)

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • 主に空白・空白行の調整。
  • Property svn:keywords set to Id Rev Date
Line 
1<?php
2
3$HOME = realpath(dirname(__FILE__)) . "/../../../..";
4// テスト用に背景色を設定
5define('ERR_COLOR', 'blue');
6require_once($HOME . "/tests/class/Common_TestCase.php");
7/*
8 * This file is part of EC-CUBE
9 *
10 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
11 *
12 * http://www.lockon.co.jp/
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
27 */
28
29/**
30 * SC_Utils::sfGetEnabled()のテストクラス.
31 *
32 *
33 * @author Hiroko Tamagawa
34 * @version $Id$
35 */
36class SC_Utils_sfGetEnabledTest extends Common_TestCase
37{
38
39
40  protected function setUp()
41  {
42    // parent::setUp();
43  }
44
45  protected function tearDown()
46  {
47    // parent::tearDown();
48  }
49
50  /////////////////////////////////////////
51  // TODO 要確認 実際には使われていない?
52  public function testSfGetEnabled_falseを指定した場合_無効化するための文字列が返る()
53  {
54   
55    $this->expected = ' disabled="disabled"';
56    $this->actual = SC_Utils::sfGetEnabled(false);
57
58    $this->verify();
59  }
60
61  public function testSfGetEnabled_trueを指定した場合_0バイト文字列が返る()
62  {
63   
64    $this->expected = '';
65    $this->actual = SC_Utils::sfGetEnabled(true);
66
67    $this->verify();
68  }
69
70  //////////////////////////////////////////
71}
72
Note: See TracBrowser for help on using the repository browser.