Source: tests/service/ScheduledPostServiceTest.php · 288 lines, ~1082 statements · namespace: Scriptlog\Service · `declare(strict_types=1)`: no
Stub for the DB-backed global date_for_database().
The service resolves the unqualified call to this namespaced function first (PHP namespace function fallback), so unit tests never touch the database through app_info()/timezone_identifier().
| Alias | Fully-qualified name |
|---|---|
TestCase | PHPUnit\Framework\TestCase |
Sanitize | Scriptlog\Core\Sanitize |
ConfigurationDao | Scriptlog\Dao\ConfigurationDao |
PostDao | Scriptlog\Dao\PostDao |
ScheduledPostService | Scriptlog\Service\ScheduledPostService |
| Function | Line | Params | Returns | Summary |
|---|---|---|---|---|
date_for_database | 15 | 1 | Stub for the DB-backed global date_for_database(). |
public function date_for_database($date = null)
Stub for the DB-backed global date_for_database().
| Parameter | Type | Default | Description |
|---|---|---|---|
$date | (untyped) | null |