public function testInterval() { $today = new \DateTime(); $diff = $today->diff($this->lot->getDate()); $this->assertEquals($diff->format('%a'), $this->lot->interval()); $this->assertEquals(5, $this->lot->interval(new \DateTime('2013-02-07'))); }