public function toBeInstanceOf()

in src/ExpectObj.hack [196:207]


  public function toBeInstanceOf<Tclass>(
    classname<Tclass> $class_or_interface,
    string $msg = '',
    mixed ...$args
  ): Tclass {
    $msg = \vsprintf($msg, $args);
    $obj = $this->var;
    $this->assertInstanceOf($class_or_interface, $obj, $msg);
    return
      /* HH_IGNORE_ERROR[4110] Typechecker can't understand assertInstanceOf */
      $obj;
  }