getMessage()); } } } public function testOneCatchHandlesEverything(): void { $this->expectException(CepisException::class); Client::normalizeCep('123'); } public function testInvalidCepIsAlsoAnInvalidArgumentException(): void { $this->expectException(\InvalidArgumentException::class); Client::normalizeCep('123'); } }