/** * Test for Yesterday */ public function testYesterday() { $locale = new Locale('de_AT'); $date = new Date(Date::now()); $d2 = new Date(1010101010, $locale); $date->subDay(1); $this->assertFalse($d2->isYesterday()); $this->assertTrue($date->isYesterday()); }