コード例 #1
0
ファイル: ModelTest.php プロジェクト: junjinZ/wealthbot
 public function testSetCorrectType()
 {
     $this->model->setType(CeModel::TYPE_CUSTOM);
     $this->assertEquals(CeModel::TYPE_CUSTOM, $this->model->getType());
     $this->model->setType(CeModel::TYPE_STRATEGY);
     $this->assertEquals(CeModel::TYPE_STRATEGY, $this->model->getType());
 }
コード例 #2
0
ファイル: CeModel.php プロジェクト: junjinZ/wealthbot
 /**
  * Get type
  *
  * @return integer 
  */
 public function getType()
 {
     return parent::getType();
 }