예제 #1
0
 public function test_yesterday()
 {
     $range = new DateRange(Carbon::yesterday()->subSecond(), Carbon::yesterday()->endOfDay()->addSecond());
     $expected_result = 'Yesterday';
     $this->assertEquals($expected_result, $range->forHumans());
 }