@@ -9,21 +9,21 @@ declare(strict_types=1);
99require __DIR__ . '/../bootstrap.php ' ;
1010
1111
12- class MockIClient implements Milo \Github \Http \IClient
12+ class LogicExceptionMockClient implements Milo \Github \Http \IClient
1313{
1414 public function request (Milo \Github \Http \Request $ request ): Milo \Github \Http \Response
1515 {
1616 throw new \LogicException ;
1717 }
1818
1919
20- public function onRequest (?callable $ cb ): static
20+ public function onRequest (?callable $ callback ): static
2121 {
2222 return $ this ;
2323 }
2424
2525
26- public function onResponse (?callable $ cb ): static
26+ public function onResponse (?callable $ callback ): static
2727 {
2828 return $ this ;
2929 }
@@ -32,7 +32,7 @@ class MockIClient implements Milo\Github\Http\IClient
3232
3333# Basics
3434test (function () {
35- $ client = new MockIClient ;
35+ $ client = new LogicExceptionMockClient ;
3636 $ api = new Milo \Github \Api ($ client );
3737
3838 Assert::same ($ client , $ api ->getClient ());
@@ -58,7 +58,7 @@ test(function() {
5858
5959# createRequest()
6060test (function () {
61- $ client = new MockIClient ;
61+ $ client = new LogicExceptionMockClient ;
6262 $ api = new Milo \Github \Api ($ client );
6363
6464 # All slashes in URL
@@ -87,7 +87,7 @@ test(function() {
8787
8888# Default parameters
8989test (function () {
90- $ client = new MockIClient ;
90+ $ client = new LogicExceptionMockClient ;
9191 $ api = new Milo \Github \Api ($ client );
9292 $ api ->setUrl ('url://test ' );
9393
@@ -110,7 +110,7 @@ test(function() {
110110
111111# Api called with absolute URL
112112test (function () {
113- $ client = new MockIClient ;
113+ $ client = new LogicExceptionMockClient ;
114114 $ api = new Milo \Github \Api ($ client );
115115 $ api ->setUrl ('url://test ' );
116116
@@ -137,7 +137,7 @@ test(function() {
137137
138138# Paginator
139139test (function () {
140- $ client = new MockIClient ;
140+ $ client = new LogicExceptionMockClient ;
141141 $ api = new Milo \Github \Api ($ client );
142142
143143 Assert::type (Milo \Github \Paginator::class, $ api ->paginator ('' ));
0 commit comments