Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 11e2d062

Přidáno uživatelem Ondřej Fibich před téměř 7 roky(ů)

Format fixes.

Zobrazit rozdíly:

tests/application/services/member/ExpirationCalcServiceTest.php
class ExpirationCalcServiceTest extends AbstractItCase
{
/**
* @var ExpirationCalcService
*/
private $object;
/**
* @var ExpirationCalcService
*/
private $object;
/**
* Hold deduct day during test for recover.
......
private $old_deduct_day;
protected function setUp()
{
$this->object = new ConfigurableTestExpirationCalcService(self::$services);
{
$this->object = new ConfigurableTestExpirationCalcService(self::$services);
$this->old_deduct_day = Settings::get('deduct_day');
}
}
protected function tearDown()
{
......
*/
class ConfigurableTestExpirationCalcService extends ExpirationCalcService
{
public function set_transfer_model($transfer_model)
{
$this->transfer_model = $transfer_model;
......
{
$this->device_model = $device_model;
}
}
class TestStaticTransferModel
{
private $account_id;
private $last_transfer_date;
......
{
return $this->account_id == $account_id ? $this->last_transfer_date : NULL;
}
}
class TestStaticFeeModel
{
private $member_id;
private $fee;
......
{
return ($this->member_id == $member_id) ? $this->fee : 0;
}
}

Také k dispozici: Unified diff