Exemple #1
0
 public function testSetSecurityType()
 {
     $this->tradeData->setSecurityType(TradeData::SECURITY_TYPE_EQUITY);
     $this->assertEquals(TradeData::SECURITY_TYPE_EQUITY, $this->tradeData->getSecurityType());
     $this->tradeData->setSecurityType('mf');
     $this->assertEquals(TradeData::SECURITY_TYPE_MUTUAL_FUND, $this->tradeData->getSecurityType());
     $this->tradeData->setSecurityType('eq');
     $this->assertEquals(TradeData::SECURITY_TYPE_EQUITY, $this->tradeData->getSecurityType());
     $this->setExpectedException('Exception', 'Security Type must be E or M');
     $this->tradeData->setSecurityType('aaa');
 }