66use Helmich \Psr7Assert \Constraint \HasHeaderConstraint ;
77use Helmich \Psr7Assert \Constraint \HasUriConstraint ;
88use Helmich \Psr7Assert \Constraint \IsAbsoluteUriConstraint ;
9- use Helmich \Psr7Assert \Psr7Assertions ;
9+ use Helmich \Psr7Assert \Psr7AssertionsClass ;
1010use PHPUnit \Framework \Assert ;
1111use PHPUnit \Framework \Constraint \Constraint ;
1212
@@ -22,42 +22,42 @@ function hasHeader(string $name, $constraint = null): HasHeaderConstraint
2222
2323function hasHeaders (array $ constraints ): Constraint
2424{
25- return Psr7Assertions ::hasHeaders ($ constraints );
25+ return Psr7AssertionsClass ::hasHeaders ($ constraints );
2626}
2727
2828function hasStatus ($ status ): Constraint
2929{
30- return Psr7Assertions ::hasStatus ($ status );
30+ return Psr7AssertionsClass ::hasStatus ($ status );
3131}
3232
3333function hasQueryParameter ($ name , $ value = null ): Constraint
3434{
35- return Psr7Assertions ::hasQueryParameter ($ name , $ value );
35+ return Psr7AssertionsClass ::hasQueryParameter ($ name , $ value );
3636}
3737
3838function hasQueryParameters (array $ constraints ): Constraint
3939{
40- return Psr7Assertions ::hasQueryParameters ($ constraints );
40+ return Psr7AssertionsClass ::hasQueryParameters ($ constraints );
4141}
4242
4343function isSuccess (): Constraint
4444{
45- return Psr7Assertions ::isSuccess ();
45+ return Psr7AssertionsClass ::isSuccess ();
4646}
4747
4848function isRedirect (): Constraint
4949{
50- return Psr7Assertions ::isRedirect ();
50+ return Psr7AssertionsClass ::isRedirect ();
5151}
5252
5353function isClientError (): Constraint
5454{
55- return Psr7Assertions ::isClientError ();
55+ return Psr7AssertionsClass ::isClientError ();
5656}
5757
5858function isServerError (): Constraint
5959{
60- return Psr7Assertions ::isServerError ();
60+ return Psr7AssertionsClass ::isServerError ();
6161}
6262
6363function hasContentType (string $ contentType ): Constraint
@@ -70,27 +70,27 @@ function hasContentType(string $contentType): Constraint
7070
7171function hasMethod (string $ method ): Constraint
7272{
73- return Psr7Assertions ::hasMethod ($ method );
73+ return Psr7AssertionsClass ::hasMethod ($ method );
7474}
7575
7676function isGet (): Constraint
7777{
78- return Psr7Assertions ::isGet ();
78+ return Psr7AssertionsClass ::isGet ();
7979}
8080
8181function isPost (): Constraint
8282{
83- return Psr7Assertions ::isPost ();
83+ return Psr7AssertionsClass ::isPost ();
8484}
8585
8686function isPut (): Constraint
8787{
88- return Psr7Assertions ::isPut ();
88+ return Psr7AssertionsClass ::isPut ();
8989}
9090
9191function isDelete (): Constraint
9292{
93- return Psr7Assertions ::isDelete ();
93+ return Psr7AssertionsClass ::isDelete ();
9494}
9595
9696function bodyMatches ($ constraint ): Constraint
@@ -113,7 +113,7 @@ function bodyMatchesJson($constraints): Constraint
113113
114114function bodyMatchesForm (array $ constraints ): Constraint
115115{
116- return Psr7Assertions ::bodyMatchesForm ($ constraints );
116+ return Psr7AssertionsClass ::bodyMatchesForm ($ constraints );
117117}
118118
119119function isAbsoluteUri (): Constraint
0 commit comments