@@ -21,7 +21,7 @@ class ViaBasicAuthorizationTest extends TestCase
2121{
2222 public function testReturnNothingWhenNoAuthorizationHeader ()
2323 {
24- $ authenticate = new ViaBasicAuthorization (
24+ $ authenticate = ViaBasicAuthorization:: of (
2525 static fn () => throw new \Exception ,
2626 );
2727 $ request = ServerRequest::of (
@@ -38,7 +38,7 @@ public function testReturnNothingWhenNoAuthorizationHeader()
3838
3939 public function testReturnNothingWhenAuthorizationHeaderNotParsedCorrectly ()
4040 {
41- $ authenticate = new ViaBasicAuthorization (
41+ $ authenticate = ViaBasicAuthorization:: of (
4242 static fn () => throw new \Exception ,
4343 );
4444 $ request = ServerRequest::of (
@@ -58,7 +58,7 @@ public function testReturnNothingWhenAuthorizationHeaderNotParsedCorrectly()
5858
5959 public function testReturnNothingWhenNotBasicAuthorization ()
6060 {
61- $ authenticate = new ViaBasicAuthorization (
61+ $ authenticate = ViaBasicAuthorization:: of (
6262 static fn () => throw new \Exception ,
6363 );
6464 $ request = ServerRequest::of (
@@ -78,7 +78,7 @@ public function testReturnNothingWhenNotBasicAuthorization()
7878
7979 public function testInvokation ()
8080 {
81- $ authenticate = new ViaBasicAuthorization (
81+ $ authenticate = ViaBasicAuthorization:: of (
8282 static fn ($ user , $ password ) => Attempt::result ([$ user , $ password ]),
8383 );
8484 $ request = ServerRequest::of (
0 commit comments