- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/Common_TestCase.php
r22567 r22796 14 14 * 15 15 */ 16 class Common_TestCase extends PHPUnit_Framework_TestCase 17 { 16 class Common_TestCase extends PHPUnit_Framework_TestCase { 18 17 19 18 /** SC_Query インスタンス */ … … 25 24 protected $actual; 26 25 27 protected function setUp() 28 { 26 protected function setUp() { 29 27 $this->objQuery = SC_Query_Ex::getSingletonInstance(); 30 28 $this->objQuery->begin(); 31 29 } 32 30 33 protected function tearDown() 34 { 31 protected function tearDown() { 35 32 $this->objQuery->rollback(); 36 33 $this->objQuery = null; … … 41 38 * 呼び出す前に、$expectedに期待値を、$actualに実際の値を導入してください。 42 39 */ 43 protected function verify($message = null) 44 { 40 protected function verify($message = null) { 45 41 $this->assertEquals($this->expected, $this->actual, $message); 46 42 } … … 54 50 */ 55 51 /** 56 public function testExit() 57 { 52 public function testExit() { 58 53 $resp = new SC_Response_Ex(); 59 54 $resp->actionExit(); … … 69 64 */ 70 65 /** 71 public function testDeviceType() 72 { 66 public function testDeviceType() { 73 67 $this->expected = array(DEVICE_TYPE_MOBILE, DEVICE_TYPE_SMARTPHONE); 74 68 $this->actual = array(); … … 88 82 */ 89 83 /** 90 public function testLoginState() 91 { 84 public function testLoginState() { 92 85 $this->expected = array(FALSE, TRUE); 93 86 $this->actual = array();
Note: See TracChangeset
for help on using the changeset viewer.