public function toHaveSameShapeAs()

in src/ExpectObj.hack [305:318]


  public function toHaveSameShapeAs(
    mixed $expected,
    string $msg = '',
    mixed ...$args
  ): void {
    $msg = \vsprintf($msg, $args);

    $value = $this->var;
    $this->assertKeyAndValueEquals(
      $expected as KeyedContainer<_, _>,
      $value as KeyedContainer<_, _>,
      $msg,
    );
  }