public function throwsException($exceptionClassOrObject): ObjectExceptionMatcher {
        $class = is_string($exceptionClassOrObject) ? $exceptionClassOrObject : get_class($exceptionClassOrObject);
        $matcher = $this->createInternalMatcherWithDescription(ObjectExceptionMatcher::class, 'I see that exception "' . $class . '"');

        $matcher->exceptionClassOrObject = $exceptionClassOrObject;

        return $matcher;
    }