date() public static method

public static date ( null $format = null ) : mixed
$format null - Custom format
return mixed
Example #1
0
 public function testDateMethod()
 {
     $value = GiiantFaker::date();
     $this->specify('returned value is date as string', function () use($value) {
         expect('value is not empty', $value)->notEmpty();
         expect('value is integer', is_string($value))->true();
         \DateTime::createFromFormat(GiiantFaker::FORMAT_DATE, $value);
     });
 }