Changeset 22567 for branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetAddressTest.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_sfGetAddressTest.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class SC_Utils_sfGetAddressTest extends Common_TestCase { 34 class SC_Utils_sfGetAddressTest extends Common_TestCase 35 { 35 36 36 37 37 protected function setUp() { 38 protected function setUp() 39 { 38 40 parent::setUp(); 39 41 $this->setUpAddress(); 40 42 } 41 43 42 protected function tearDown() { 44 protected function tearDown() 45 { 43 46 parent::tearDown(); 44 47 } 45 48 46 49 ///////////////////////////////////////// 47 public function test_住所がヒットしない場合_空の配列が返る() { 50 public function test_住所がヒットしない場合_空の配列が返る() 51 { 48 52 $this->expected = array(); 49 53 $this->actual = SC_Utils::sfGetAddress('9999999'); … … 52 56 } 53 57 54 public function test_住所が一件だけヒットする場合_住所データが取得できる() { 58 public function test_住所が一件だけヒットする場合_住所データが取得できる() 59 { 55 60 $this->expected = array( 56 61 array( … … 69 74 // $data_list[0]を返した方が良いのでは? 70 75 /** 71 public function test_住所が二件以上ヒットする場合_町名を消した住所データが取得できる() { 76 public function test_住所が二件以上ヒットする場合_町名を消した住所データが取得できる() 77 { 72 78 $this->expected = array( 73 79 array( … … 88 94 */ 89 95 90 public function test_住所に但し書きが含まれる場合_但し書きが消去される() { 96 public function test_住所に但し書きが含まれる場合_但し書きが消去される() 97 { 91 98 $this->expected = array( 92 99 array( … … 101 108 } 102 109 103 public function test_住所に注意文言がある場合_町名が消去される() { 110 public function test_住所に注意文言がある場合_町名が消去される() 111 { 104 112 $this->expected = array( 105 113 array( … … 114 122 } 115 123 116 public function test_住所に番地の説明が含まれる場合_町名が消去される() { 124 public function test_住所に番地の説明が含まれる場合_町名が消去される() 125 { 117 126 $this->expected = array( 118 127 array( … … 129 138 ////////////////////////////////////////// 130 139 131 protected function setUpAddress() { 140 protected function setUpAddress() 141 { 132 142 133 143 $address = array(
Note: See TracChangeset
for help on using the changeset viewer.