We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 170b631 commit 93348d2Copy full SHA for 93348d2
src/Symfony/Bridge/PhpUnit/ClockMock.php
@@ -109,6 +109,15 @@ public static function hrtime($asNumber = false)
109
return [(int) self::$now, (int) $ns];
110
}
111
112
+ public static function strtotime(string $datetime, ?int $timestamp = null): false|int
113
+ {
114
+ if (null === $timestamp) {
115
+ $timestamp = self::time();
116
+ }
117
+
118
+ return \strtotime($datetime, $timestamp);
119
120
121
public static function register($class): void
122
{
123
$self = static::class;
@@ -161,6 +170,11 @@ function hrtime(\$asNumber = false)
161
170
162
171
return \\$self::hrtime(\$asNumber);
163
172
173
174
+function strtotime(\$datetime, \$timestamp = null)
175
+{
176
+ return \\$self::strtotime(\$datetime, \$timestamp);
177
+}
164
178
EOPHP
165
179
);
166
180
0 commit comments