expectException(Exception\InvariantViolationException::class); $this->expectExceptionMessage('Expected non-negative base conversion input, got -5'); Math\to_base(-5, 16); } public function testInvalidToBaseThrows(): void { $this->expectException(Exception\InvariantViolationException::class); $this->expectExceptionMessage('Expected $to_base to be between 2 and 36, got 64'); Math\to_base(1, 64); } }