public function testEventIsLastMonth() { $date = new \DateTime('2016-01-1 12:07'); $this->assertEquals($this->event->isLastMonth($date), TRUE); $date = new \DateTime('2016-02-2 12:07'); $this->assertEquals($this->event->isLastMonth($date), FALSE); }