/** * Tests the getters and setters of the model * @test */ public function setGetTest() { $offer = new Response\Offer(); $liveMode = false; $cancelAtPeriodEnd = false; $trialStart = null; $trialEnd = null; $nextCaptureAt = 1369563095; $canceledAt = null; $payment = new Response\Payment(); $client = new Response\Client(); $this->_subscription->setOffer($offer)->setLivemode($liveMode)->setTrialStart($trialStart)->setTrialEnd($trialEnd)->setNextCaptureAt($nextCaptureAt)->setCanceledAt($canceledAt)->setClient($client)->setPayment($payment); $this->assertEquals($this->_subscription->getOffer(), $offer); $this->assertEquals($this->_subscription->getLivemode(), $liveMode); $this->assertEquals($this->_subscription->getTrialStart(), $trialStart); $this->assertEquals($this->_subscription->getTrialEnd(), $trialEnd); $this->assertEquals($this->_subscription->getNextCaptureAt(), $nextCaptureAt); $this->assertEquals($this->_subscription->getCanceledAt(), $canceledAt); $this->assertEquals($this->_subscription->getClient(), $client); $this->assertEquals($this->_subscription->getPayment(), $payment); }