/** * @test */ public function setDisplayedLastMonthForIntegerSetsDisplayedLastMonth() { $this->fixture->setDisplayedLastMonth(12); $this->assertSame(12, $this->fixture->getDisplayedLastMonth()); }
protected function setStatisticsForNewMonth(Tx_Randombanners_Domain_Model_Banner $banner) { $banner->setClickedLastMonth($banner->getClickedThisMonth()); $banner->setDisplayedLastMonth($banner->getDisplayedThisMonth()); $banner->setDisplayedThisMonth(0); $banner->setClickedThisMonth(0); }