in src/Framework/HackTest.hack [277:287]
public final function setExpectedException(
string $exception,
?string $exception_message = '',
mixed $exception_code = null,
): void {
$this->expectedException = $exception;
$this->expectedExceptionMessage = $exception_message;
$this->expectedExceptionCode = static::computeExpectedExceptionCode(
$exception_code,
);
}