today() 공개 메소드

Get the current date
public today ( ) : DateTime
리턴 DateTime
 /**
  * @test
  */
 public function todayWorks()
 {
     $helper = new DateHelper();
     $result = $helper->today();
     $this->assertInstanceOf(\DateTime::class, $result);
     $today = new \DateTime('today');
     $this->assertEquals($today->getTimestamp(), $result->getTimestamp(), 'Today should be today', 1);
 }