@@ -41,9 +41,9 @@ public function testStoreCannotSetupOnInvalidResponse()
4141
4242 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:7700 ' , 'test ' , new MonotonicClock (), 'test ' );
4343
44- self :: expectException (ClientException::class);
45- self :: expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes". ' );
46- self :: expectExceptionCode (400 );
44+ $ this -> expectException (ClientException::class);
45+ $ this -> expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes". ' );
46+ $ this -> expectExceptionCode (400 );
4747 $ store ->setup ();
4848 }
4949
@@ -110,9 +110,9 @@ public function testStoreCannotDropOnInvalidResponse()
110110
111111 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:7700 ' , 'test ' , new MonotonicClock (), 'test ' );
112112
113- self :: expectException (ClientException::class);
114- self :: expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents". ' );
115- self :: expectExceptionCode (400 );
113+ $ this -> expectException (ClientException::class);
114+ $ this -> expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents". ' );
115+ $ this -> expectExceptionCode (400 );
116116 $ store ->drop ();
117117 }
118118
@@ -161,9 +161,9 @@ public function testStoreCannotSaveOnInvalidResponse()
161161
162162 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:7700 ' , 'test ' , new MonotonicClock (), 'test ' );
163163
164- self :: expectException (ClientException::class);
165- self :: expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents". ' );
166- self :: expectExceptionCode (400 );
164+ $ this -> expectException (ClientException::class);
165+ $ this -> expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents". ' );
166+ $ this -> expectExceptionCode (400 );
167167 $ store ->save (new MessageBag (Message::ofUser ('Hello there ' )));
168168 }
169169
@@ -212,9 +212,9 @@ public function testStoreCannotLoadMessagesOnInvalidResponse()
212212
213213 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:7700 ' , 'test ' , new MonotonicClock (), 'test ' );
214214
215- self :: expectException (ClientException::class);
216- self :: expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents/fetch". ' );
217- self :: expectExceptionCode (400 );
215+ $ this -> expectException (ClientException::class);
216+ $ this -> expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:7700/indexes/test/documents/fetch". ' );
217+ $ this -> expectExceptionCode (400 );
218218 $ store ->load ();
219219 }
220220
0 commit comments