Revision 22567,
1.1 KB
checked in by shutta, 11 years ago
(diff) |
#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $HOME = realpath(dirname(__FILE__)) . "/../../.."; |
---|
4 | require_once($HOME . "/tests/class/SC_Product/SC_Product_TestBase.php"); |
---|
5 | /** |
---|
6 | * |
---|
7 | */ |
---|
8 | class SC_Product_setProductsOrderTest extends SC_Product_TestBase |
---|
9 | { |
---|
10 | |
---|
11 | protected function setUp() |
---|
12 | { |
---|
13 | parent::setUp(); |
---|
14 | $this->objProducts = new SC_Product_Ex(); |
---|
15 | } |
---|
16 | |
---|
17 | protected function tearDown() |
---|
18 | { |
---|
19 | parent::tearDown(); |
---|
20 | } |
---|
21 | |
---|
22 | ///////////////////////////////////////// |
---|
23 | public function testSetProductsOrder_デフォルト引数() |
---|
24 | { |
---|
25 | $this->objProducts->setProductsOrder('name'); |
---|
26 | |
---|
27 | $this->actual = $this->objProducts->arrOrderData; |
---|
28 | $this->expected = array('col' => 'name', 'table' => 'dtb_products', 'order' => 'ASC'); |
---|
29 | |
---|
30 | $this->verify('デフォルト引数'); |
---|
31 | } |
---|
32 | |
---|
33 | public function testSetProductsOrder_引数指定() |
---|
34 | { |
---|
35 | $this->objProducts->setProductsOrder('name', 'dtb_products_class', 'DESC'); |
---|
36 | |
---|
37 | $this->actual = $this->objProducts->arrOrderData; |
---|
38 | $this->expected = array('col' => 'name', 'table' => 'dtb_products_class', 'order' => 'DESC'); |
---|
39 | |
---|
40 | $this->verify('デフォルト引数'); |
---|
41 | } |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.