diff --git a/tests/Grant/AuthCodeGrantTest.php b/tests/Grant/AuthCodeGrantTest.php index 4e0586109..646056618 100644 --- a/tests/Grant/AuthCodeGrantTest.php +++ b/tests/Grant/AuthCodeGrantTest.php @@ -509,7 +509,7 @@ public function testValidateAuthorizationRequestInvalidScopes(): void return; } - $this->fail('The expected exception was not thrown'); + self::fail('The expected exception was not thrown'); } public function testCompleteAuthorizationRequest(): void @@ -594,7 +594,7 @@ public function testCompleteAuthorizationRequestDenied(): void return; } - $this->fail('The expected exception was not thrown'); + self::fail('The expected exception was not thrown'); } public function testRespondToAccessTokenRequest(): void diff --git a/tests/Grant/ImplicitGrantTest.php b/tests/Grant/ImplicitGrantTest.php index c38f59629..617aaa842 100644 --- a/tests/Grant/ImplicitGrantTest.php +++ b/tests/Grant/ImplicitGrantTest.php @@ -241,7 +241,7 @@ public function testValidateAuthorizationRequestInvalidScopes(): void return; } - $this->fail('Did not throw expected exception'); + self::fail('Did not throw expected exception'); } public function testCompleteAuthorizationRequest(): void @@ -310,7 +310,7 @@ public function testCompleteAuthorizationRequestDenied(): void return; } - $this->fail('Did not throw expected exception'); + self::fail('Did not throw expected exception'); } public function testAccessTokenRepositoryUniqueConstraintCheck(): void