File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function testThrowsExceptionIfTheProvidedSpiderClassDoesNotExist(): void
3737 $ resolver = new StaticNamespaceResolver ();
3838
3939 $ this ->expectException (InvalidSpiderException::class);
40- $ this ->expectErrorMessage ('The spider class ::spider-class:: does not exist ' );
40+ $ this ->expectExceptionMessage ('The spider class ::spider-class:: does not exist ' );
4141
4242 $ resolver ->resolveSpiderNamespace ('::spider-class:: ' );
4343 }
@@ -47,7 +47,7 @@ public function testThrowsExceptionIfTheProvidedClassIsNotASpider(): void
4747 $ resolver = new StaticNamespaceResolver ();
4848
4949 $ this ->expectException (InvalidSpiderException::class);
50- $ this ->expectErrorMessage (\sprintf ('The class %s is not a spider ' , RequestSpiderMiddleware::class));
50+ $ this ->expectExceptionMessage (\sprintf ('The class %s is not a spider ' , RequestSpiderMiddleware::class));
5151
5252 $ resolver ->resolveSpiderNamespace (RequestSpiderMiddleware::class);
5353 }
You can’t perform that action at this time.
0 commit comments