示例#1
0
 public function testSeriousParticipationBlock()
 {
     $company = new Company();
     $company->setDeposit(10000);
     $procedure = new Procedure();
     $procedure->setStartPrice(100000);
     $app = new Application($company, $procedure);
     $app->blockMoney(new SeriousBlocker());
     $this->assertEquals(0, $company->getDeposit(), 'Deposit must be 0');
     $app->unblockMoney(new SeriousBlocker());
     $this->assertEquals(10000, $company->getDeposit(), 'Deposit must be 10000');
 }
 /**
  * @inheritdoc
  */
 public function unblock(Company $company, Procedure $procedure)
 {
     $company->setDeposit($company->getDeposit() + $this->getFee($procedure));
 }
示例#3
0
 /**
  * @inheritdoc
  */
 public function unblock(Company $company, Procedure $procedure)
 {
     $company->setDeposit($company->getDeposit() + self::BASE_FEE);
 }