public function assertNotInstanceOf()

in src/Assert.hack [343:362]


  public function assertNotInstanceOf(
    string $expected,
    mixed $actual,
    string $message = '',
  ): void {
    if (!\class_exists($expected) && !\interface_exists($expected)) {
      throw new InvalidArgumentException('Invalid class or interface name');
    }
    if (!\is_a($actual, $expected)) {
      return;
    }
    throw new ExpectationFailedException(
      Str\format(
        "%s\nFailed asserting that %s is not an instance of %s",
        $message,
        \var_export($actual, true),
        $expected,
      ),
    );
  }