/** * Test that isThisWeek() returns true if the passed date is this week. */ public function testIsThisWeek() { $this->assertTrue(Time::isThisWeek('+0 week')); $this->assertFalse(Time::isThisWeek('+2 week')); $this->assertFalse(Time::isThisWeek('-2 week')); }