Add more specific exceptions

This commit is contained in:
2021-01-24 18:39:26 +03:00
parent 92e8ca0812
commit caa1bab9b5
13 changed files with 98 additions and 29 deletions

View File

@ -34,7 +34,7 @@ final class SubscriberTest extends TestCase
public function testInvalidChangeInterval(): void
{
$this->expectException(\Nsq\Exception::class);
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Timeout must be float, "string" given.');
$generator = $this->subscriber->subscribe(__FUNCTION__, __FUNCTION__);