public static function Carbon::getTestNow in Persian Date for Drupal 8 8.4
Get the Carbon instance (real or mock) to be returned when a "now" instance is created.
Return value
static the current instance used for testing
2 calls to Carbon::getTestNow()
- Carbon::hasTestNow in src/
Library/ Carbon/ Carbon.php - Determine if there is a valid test instance set. A valid test instance is anything that is not null.
- Carbon::__construct in src/
Library/ Carbon/ Carbon.php - Create a new Carbon instance.
File
- src/
Library/ Carbon/ Carbon.php, line 1055
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public static function getTestNow() {
return static::$testNow;
}