Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ksassnowski committed Feb 17, 2023
1 parent a4f77c0 commit 1af969a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Shell/Resolver/StaticNamespaceResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testThrowsExceptionIfTheProvidedSpiderClassDoesNotExist(): void
$resolver = new StaticNamespaceResolver();

$this->expectException(InvalidSpiderException::class);
$this->expectErrorMessage('The spider class ::spider-class:: does not exist');
$this->expectExceptionMessage('The spider class ::spider-class:: does not exist');

$resolver->resolveSpiderNamespace('::spider-class::');
}
Expand All @@ -47,7 +47,7 @@ public function testThrowsExceptionIfTheProvidedClassIsNotASpider(): void
$resolver = new StaticNamespaceResolver();

$this->expectException(InvalidSpiderException::class);
$this->expectErrorMessage(\sprintf('The class %s is not a spider', RequestSpiderMiddleware::class));
$this->expectExceptionMessage(\sprintf('The class %s is not a spider', RequestSpiderMiddleware::class));

$resolver->resolveSpiderNamespace(RequestSpiderMiddleware::class);
}
Expand Down

0 comments on commit 1af969a

Please sign in to comment.