@@ -91,31 +91,31 @@ public static function isExpiredDataProvider():array{
91
91
}
92
92
93
93
#[DataProvider('isExpiredDataProvider ' )]
94
- public function testIsExpired (int $ expires , bool $ isExpired ):void {
95
- $ this ->token ->setExpiry ( $ expires) ;
94
+ public function testIsExpired (int $ expiry , bool $ isExpired ):void {
95
+ $ this ->token ->expires = $ expiry ;
96
96
$ this ::assertSame ($ isExpired , $ this ->token ->isExpired ());
97
97
}
98
98
99
99
#[Group('slow ' )]
100
100
public function testIsExpiredVariable ():void {
101
101
$ expiry = (time () + 3600 );
102
- $ this ->token ->setExpiry ( $ expiry) ;
102
+ $ this ->token ->expires = $ expiry ;
103
103
$ this ::assertSame ($ expiry , $ this ->token ->expires );
104
104
$ this ::assertFalse ($ this ->token ->isExpired ());
105
105
106
106
$ expiry = 3600 ;
107
- $ this ->token ->setExpiry ( $ expiry) ;
107
+ $ this ->token ->expires = $ expiry ;
108
108
$ this ::assertSame ((time () + $ expiry ), $ this ->token ->expires );
109
109
$ this ::assertFalse ($ this ->token ->isExpired ());
110
110
111
111
$ expiry = 2 ;
112
- $ this ->token ->setExpiry ( $ expiry) ;
112
+ $ this ->token ->expires = $ expiry ;
113
113
$ this ::assertSame ((time () + $ expiry ), $ this ->token ->expires );
114
114
sleep (3 );
115
115
$ this ::assertTrue ($ this ->token ->isExpired ());
116
116
117
117
$ expiry = (time () + 2 );
118
- $ this ->token ->setExpiry ( $ expiry) ;
118
+ $ this ->token ->expires = $ expiry ;
119
119
$ this ::assertSame ($ expiry , $ this ->token ->expires );
120
120
sleep (3 );
121
121
$ this ::assertTrue ($ this ->token ->isExpired ());
0 commit comments