@@ -36,9 +36,9 @@ public function testStoreCannotSetupOnInvalidResponse()
3636
3737 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:9401 ' , 'test ' , 'test ' );
3838
39- self :: expectException (ClientException::class);
40- self :: expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:9401/test?auth=test". ' );
41- self :: expectExceptionCode (400 );
39+ $ this -> expectException (ClientException::class);
40+ $ this -> expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:9401/test?auth=test". ' );
41+ $ this -> expectExceptionCode (400 );
4242 $ store ->setup ();
4343 }
4444
@@ -67,9 +67,9 @@ public function testStoreCannotDropOnInvalidResponse()
6767
6868 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:9401 ' , 'test ' , 'test ' );
6969
70- self :: expectException (ClientException::class);
71- self :: expectExceptionMessage ('HTTP 404 returned for "http://127.0.0.1:9401/test?auth=test". ' );
72- self :: expectExceptionCode (404 );
70+ $ this -> expectException (ClientException::class);
71+ $ this -> expectExceptionMessage ('HTTP 404 returned for "http://127.0.0.1:9401/test?auth=test". ' );
72+ $ this -> expectExceptionCode (404 );
7373 $ store ->drop ();
7474 }
7575
@@ -98,9 +98,9 @@ public function testStoreCannotSaveOnInvalidResponse()
9898
9999 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:9401 ' , 'test ' , 'test ' );
100100
101- self :: expectException (ClientException::class);
102- self :: expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:9401/test?auth=test". ' );
103- self :: expectExceptionCode (400 );
101+ $ this -> expectException (ClientException::class);
102+ $ this -> expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:9401/test?auth=test". ' );
103+ $ this -> expectExceptionCode (400 );
104104 $ store ->save (new MessageBag (Message::ofUser ('Hello there ' )));
105105 }
106106
@@ -129,9 +129,9 @@ public function testStoreCannotLoadMessagesOnInvalidResponse()
129129
130130 $ store = new MessageStore ($ httpClient , 'http://127.0.0.1:9401 ' , 'test ' , 'test ' );
131131
132- self :: expectException (ClientException::class);
133- self :: expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:9401/test?auth=test". ' );
134- self :: expectExceptionCode (400 );
132+ $ this -> expectException (ClientException::class);
133+ $ this -> expectExceptionMessage ('HTTP 400 returned for "http://127.0.0.1:9401/test?auth=test". ' );
134+ $ this -> expectExceptionCode (400 );
135135 $ store ->load ();
136136 }
137137
0 commit comments