@@ -67,6 +67,9 @@ protected function setup(): void
6767 $ this ->geocoder = $ this ->getMockGeocoderReturns ($ this ->providers );
6868 }
6969
70+ /**
71+ * @doesNotPerformAssertions
72+ */
7073 public function testConstructorShouldAcceptGeocoderInterface ()
7174 {
7275 new TestableBatch ($ this ->getStubGeocoder ());
@@ -113,12 +116,12 @@ public function testGeocodeShouldMadeCorrectTasksArrayToComputeWithManyValues()
113116 }
114117
115118 /**
116- * @expectedException League\Geotools\Exception\InvalidArgumentException
117- * @expectedExceptionMessage The argument should be a string or an array of strings to geocode.
118119 * @dataProvider invalidValuesProvider
119120 */
120121 public function testGeocodeShouldThrowInvalidArgumentException ($ values )
121122 {
123+ $ this ->expectException (\League \Geotools \Exception \InvalidArgumentException::class);
124+ $ this ->expectExceptionMessage ('The argument should be a string or an array of strings to geocode. ' );
122125 $ batch = new TestableBatch ($ this ->geocoder );
123126 $ batch ->geocode ($ values );
124127 }
@@ -168,12 +171,12 @@ public function testReverseShouldMadeCorrectTasksArrayToComputeWithManyCoordinat
168171 }
169172
170173 /**
171- * @expectedException League\Geotools\Exception\InvalidArgumentException
172- * @expectedExceptionMessage The argument should be a Coordinate instance or an array of Coordinate instances to reverse.
173174 * @dataProvider coordinatesProvider
174175 */
175176 public function testReverseShouldThrowInvalidArgumentException ($ coordinates )
176177 {
178+ $ this ->expectException (\League \Geotools \Exception \InvalidArgumentException::class);
179+ $ this ->expectExceptionMessage ('The argument should be a Coordinate instance or an array of Coordinate instances to reverse. ' );
177180 $ batch = new TestableBatch ($ this ->geocoder );
178181 $ batch ->reverse ($ coordinates );
179182 }
@@ -735,12 +738,10 @@ public function testBatchReverseGeocodingInParallelReturnNewGeocodedInstanceWith
735738 }
736739 }
737740
738- /**
739- * @expectedException RuntimeException
740- * @expectedExceptionMessage booooooooooo!
741- */
742741 public function testSeriesShouldThrowException ()
743742 {
743+ $ this ->expectException (\RuntimeException::class);
744+ $ this ->expectExceptionMessage ('booooooooooo! ' );
744745 $ batch = new TestableBatch ($ this ->geocoder );
745746 $ batch ->setTasks ($ tasks = array (
746747 function () {
@@ -755,12 +756,10 @@ function () {
755756 ))->geocode ('foo ' )->serie ();
756757 }
757758
758- /**
759- * @expectedException RuntimeException
760- * @expectedExceptionMessage booooooooooo!
761- */
762759 public function testParallelShouldThrowException ()
763760 {
761+ $ this ->expectException (\RuntimeException::class);
762+ $ this ->expectExceptionMessage ('booooooooooo! ' );
764763 $ called = 0 ;
765764
766765 $ batch = new TestableBatch ($ this ->geocoder );
0 commit comments