File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
tests/UnitTests/Generator Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace SymfonyCasts \Bundle \ResetPassword \Tests \UnitTests \Generator ;
11
11
12
+ use PHPUnit \Framework \MockObject \MockObject ;
12
13
use PHPUnit \Framework \TestCase ;
13
14
use SymfonyCasts \Bundle \ResetPassword \Generator \ResetPasswordRandomGenerator ;
14
15
use SymfonyCasts \Bundle \ResetPassword \Generator \ResetPasswordTokenGenerator ;
20
21
class ResetPasswordTokenGeneratorTest extends TestCase
21
22
{
22
23
/**
23
- * @var \PHPUnit\Framework\MockObject\ MockObject|ResetPasswordRandomGenerator
24
+ * @var MockObject|ResetPasswordRandomGenerator
24
25
*/
25
26
private $ mockRandomGenerator ;
26
27
27
28
/**
28
- * @var \PHPUnit\Framework\MockObject\ MockObject|\DateTimeImmutable
29
+ * @var MockObject|\DateTimeImmutable
29
30
*/
30
31
private $ mockExpiresAt ;
31
32
@@ -109,9 +110,6 @@ public function testHashedTokenIsCreatedUsingOptionVerifierParam(): void
109
110
110
111
private function getTokenGenerator (): ResetPasswordTokenGenerator
111
112
{
112
- return new ResetPasswordTokenGenerator (
113
- 'key ' ,
114
- $ this ->mockRandomGenerator
115
- );
113
+ return new ResetPasswordTokenGenerator ('key ' , $ this ->mockRandomGenerator );
116
114
}
117
115
}
You can’t perform that action at this time.
0 commit comments