@@ -120,7 +120,7 @@ public function testGetUsageCanReturnUsageModel(): void
120
120
->with ($ request )
121
121
->willReturn ($ response );
122
122
123
- $ this -> assertInstanceOf (UsageInterface::class, $ this ->subject ->getUsage ());
123
+ self :: assertInstanceOf (UsageInterface::class, $ this ->subject ->getUsage ());
124
124
}
125
125
126
126
public function testGetTranslationCanThrowException (): void
@@ -193,7 +193,7 @@ public function testGetTranslationCanReturnTranslationModel(): void
193
193
->with ($ request )
194
194
->willReturn ($ response );
195
195
196
- $ this -> assertInstanceOf (TranslationInterface::class, $ this ->subject ->getTranslation ($ translation ));
196
+ self :: assertInstanceOf (TranslationInterface::class, $ this ->subject ->getTranslation ($ translation ));
197
197
}
198
198
199
199
public function testTranslateCanReturnJsonEncodedObject (): void
@@ -234,7 +234,7 @@ public function testTranslateCanReturnJsonEncodedObject(): void
234
234
->with ($ request )
235
235
->willReturn ($ response );
236
236
237
- $ this -> assertInstanceOf (TranslationInterface::class, $ this ->subject ->translate ('some text ' , 'some language ' ));
237
+ self :: assertInstanceOf (TranslationInterface::class, $ this ->subject ->translate ('some text ' , 'some language ' ));
238
238
}
239
239
240
240
public function testTranslateBatchPerformsBatchTranslations (): void
@@ -274,10 +274,7 @@ public function testTranslateBatchPerformsBatchTranslations(): void
274
274
->with ($ request )
275
275
->willReturn ($ response );
276
276
277
- $ this ->assertInstanceOf (
278
- BatchTranslationInterface::class,
279
- $ this ->subject ->translateBatch (['some text ' ], 'some language ' )
280
- );
277
+ self ::assertInstanceOf (BatchTranslationInterface::class, $ this ->subject ->translateBatch (['some text ' ], 'some language ' ));
281
278
}
282
279
283
280
public function testTranslateFileCanReturnInstanceOfResponseModel (): void
@@ -320,7 +317,7 @@ public function testTranslateFileCanReturnInstanceOfResponseModel(): void
320
317
->with ($ request )
321
318
->willReturn ($ response );
322
319
323
- $ this -> assertInstanceOf (FileSubmissionInterface::class, $ this ->subject ->translateFile ($ fileTranslation ));
320
+ self :: assertInstanceOf (FileSubmissionInterface::class, $ this ->subject ->translateFile ($ fileTranslation ));
324
321
}
325
322
326
323
public function testGetFileTranslationStatusCanReturnInstanceOfResponseModel (): void
@@ -363,7 +360,7 @@ public function testGetFileTranslationStatusCanReturnInstanceOfResponseModel():
363
360
->with ($ request )
364
361
->willReturn ($ response );
365
362
366
- $ this -> assertInstanceOf (FileTranslationStatusInterface::class, $ this ->subject ->getFileTranslationStatus ($ fileSubmission ));
363
+ self :: assertInstanceOf (FileTranslationStatusInterface::class, $ this ->subject ->getFileTranslationStatus ($ fileSubmission ));
367
364
}
368
365
369
366
public function testGetFileTranslationCanReturnInstanceOfResponseModel (): void
@@ -402,7 +399,7 @@ public function testGetFileTranslationCanReturnInstanceOfResponseModel(): void
402
399
->with ($ request )
403
400
->willReturn ($ response );
404
401
405
- $ this -> assertInstanceOf (FileTranslationInterface::class, $ this ->subject ->getFileTranslation ($ fileSubmission ));
402
+ self :: assertInstanceOf (FileTranslationInterface::class, $ this ->subject ->getFileTranslation ($ fileSubmission ));
406
403
}
407
404
408
405
public static function errorStatusCodeProvider (): array
@@ -487,7 +484,7 @@ public function testGetSupportedLanguagesReturnsSupportedLanguagesModel(): void
487
484
->with ($ request )
488
485
->willReturn ($ response );
489
486
490
- $ this -> assertInstanceOf (SupportedLanguages::class, $ this ->subject ->getSupportedLanguages ());
487
+ self :: assertInstanceOf (SupportedLanguages::class, $ this ->subject ->getSupportedLanguages ());
491
488
}
492
489
493
490
public function testGetGlossariesSupportedLanguagesPairsGetCorrectModel (): void
@@ -528,7 +525,7 @@ public function testGetGlossariesSupportedLanguagesPairsGetCorrectModel(): void
528
525
->with ($ request )
529
526
->willReturn ($ response );
530
527
531
- $ this -> assertInstanceOf (GlossariesSupportedLanguagesPairs::class, $ this ->subject ->getGlossariesSupportedLanguagesPairs ());
528
+ self :: assertInstanceOf (GlossariesSupportedLanguagesPairs::class, $ this ->subject ->getGlossariesSupportedLanguagesPairs ());
532
529
}
533
530
534
531
public function testGetGlossariesListGetCorrectModel (): void
@@ -569,7 +566,7 @@ public function testGetGlossariesListGetCorrectModel(): void
569
566
->with ($ request )
570
567
->willReturn ($ response );
571
568
572
- $ this -> assertInstanceOf (Glossaries::class, $ this ->subject ->getGlossariesList ());
569
+ self :: assertInstanceOf (Glossaries::class, $ this ->subject ->getGlossariesList ());
573
570
}
574
571
575
572
public function testCreateGlossaryGetCorrectModel (): void
@@ -612,7 +609,7 @@ public function testCreateGlossaryGetCorrectModel(): void
612
609
613
610
$ submission = $ this ->createMock (GlossarySubmission::class);
614
611
615
- $ this -> assertInstanceOf (Glossary::class, $ this ->subject ->createGlossary ($ submission ));
612
+ self :: assertInstanceOf (Glossary::class, $ this ->subject ->createGlossary ($ submission ));
616
613
}
617
614
618
615
public function testRetrieveGlossaryGetCorrectModel (): void
@@ -654,7 +651,7 @@ public function testRetrieveGlossaryGetCorrectModel(): void
654
651
->willReturn ($ response );
655
652
656
653
$ submission = $ this ->createMock (GlossaryIdSubmission::class);
657
- $ this -> assertInstanceOf (Glossary::class, $ this ->subject ->retrieveGlossary ($ submission ));
654
+ self :: assertInstanceOf (Glossary::class, $ this ->subject ->retrieveGlossary ($ submission ));
658
655
}
659
656
660
657
public function testDeleteGlossaryGetCorrectBoolean (): void
@@ -696,7 +693,7 @@ public function testDeleteGlossaryGetCorrectBoolean(): void
696
693
->willReturn ($ response );
697
694
698
695
$ submission = $ this ->createMock (GlossaryIdSubmission::class);
699
- $ this -> assertTrue ($ this ->subject ->deleteGlossary ($ submission ));
696
+ self :: assertTrue ($ this ->subject ->deleteGlossary ($ submission ));
700
697
}
701
698
702
699
public function testRetrieveGlossaryEntriesGetCorrectModel (): void
@@ -738,7 +735,7 @@ public function testRetrieveGlossaryEntriesGetCorrectModel(): void
738
735
->willReturn ($ response );
739
736
740
737
$ submission = $ this ->createMock (GlossaryIdSubmission::class);
741
- $ this -> assertInstanceOf (GlossaryEntries::class, $ this ->subject ->retrieveGlossaryEntries ($ submission ));
738
+ self :: assertInstanceOf (GlossaryEntries::class, $ this ->subject ->retrieveGlossaryEntries ($ submission ));
742
739
}
743
740
744
741
private function createRequestExpectations (
0 commit comments