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