@@ -215,7 +215,7 @@ public function testGrantAccessTokenWithClientCredentialsSuccess()
215
215
$ response = $ this ->fixture ->grantAccessToken ($ request );
216
216
217
217
// Successful token grant will return a JSON encoded token WITHOUT a refresh token:
218
- $ this ->assertRegExp ('/^{"access_token":"[^"]+","expires_in":[^"]+,"token_type":"bearer ","scope":null}$/ ' , $ response ->getContent ());
218
+ $ this ->assertRegExp ('/^{"access_token":"[^"]+","expires_in":[^"]+,"token_type":"Bearer ","scope":null}$/ ' , $ response ->getContent ());
219
219
}
220
220
221
221
/**
@@ -424,7 +424,7 @@ public function testGrantAccessTokenWithGrantUser()
424
424
array ('date ' => null )
425
425
));
426
426
427
- $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"bearer ","scope":null} ' , $ response ->getContent ());
427
+ $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"Bearer ","scope":null} ' , $ response ->getContent ());
428
428
429
429
$ token = $ stub ->getLastAccessToken ();
430
430
$ this ->assertSame ('cid ' , $ token ->getClientId ());
@@ -489,7 +489,7 @@ public function testGrantAccessTokenWithGrantUserWithScope()
489
489
array ('date ' => null )
490
490
));
491
491
492
- $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"bearer ","scope":"scope1 scope2"} ' , $ response ->getContent ());
492
+ $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"Bearer ","scope":"scope1 scope2"} ' , $ response ->getContent ());
493
493
494
494
$ token = $ stub ->getLastAccessToken ();
495
495
$ this ->assertSame ('cid ' , $ token ->getClientId ());
@@ -523,7 +523,7 @@ public function testGrantAccessTokenWithGrantUserWithReducedScope()
523
523
array ('date ' => null )
524
524
));
525
525
526
- $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"bearer ","scope":"scope1"} ' , $ response ->getContent ());
526
+ $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"Bearer ","scope":"scope1"} ' , $ response ->getContent ());
527
527
528
528
$ token = $ stub ->getLastAccessToken ();
529
529
$ this ->assertSame ('cid ' , $ token ->getClientId ());
@@ -556,7 +556,7 @@ public function testGrantAccessTokenWithGrantUserWithNoScope()
556
556
array ('date ' => null )
557
557
));
558
558
559
- $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"bearer ","scope":"scope1 scope2"} ' , $ response ->getContent ());
559
+ $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"Bearer ","scope":"scope1 scope2"} ' , $ response ->getContent ());
560
560
561
561
$ token = $ stub ->getLastAccessToken ();
562
562
$ this ->assertSame ('cid ' , $ token ->getClientId ());
@@ -643,7 +643,7 @@ public function testGrantAccessTokenWithGrantExtension()
643
643
array ('date ' => null )
644
644
));
645
645
646
- $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"bearer "} ' , $ response ->getContent ());
646
+ $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"Bearer "} ' , $ response ->getContent ());
647
647
}
648
648
649
649
/**
@@ -679,7 +679,7 @@ public function testGrantAccessTokenWithGrantExtensionLimitedLifetime()
679
679
array ('date ' => null )
680
680
));
681
681
682
- $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":86400,"token_type":"bearer "} ' , $ response ->getContent ());
682
+ $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":86400,"token_type":"Bearer "} ' , $ response ->getContent ());
683
683
}
684
684
685
685
/**
@@ -716,7 +716,7 @@ public function testGrantAccessTokenWithGrantExtensionJwtBearer()
716
716
array ('date ' => null )
717
717
));
718
718
719
- $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"bearer ","scope":null,"refresh_token":"[^"]+"} ' , $ response ->getContent ());
719
+ $ this ->assertRegExp ('{"access_token":"[^"]+","expires_in":3600,"token_type":"Bearer ","scope":null,"refresh_token":"[^"]+"} ' , $ response ->getContent ());
720
720
721
721
$ token = $ stub ->getLastAccessToken ();
722
722
$ this ->assertSame ('cid ' , $ token ->getClientId ());
0 commit comments