public function getComparators(TableNode $table) {
    $comparators = [];
    $headers = $table->getRow(0);
    foreach ($headers as $header) {
      $comparators[$header] = function ($expected, $actual) {
        if (substr($expected, 0, 1) === "/") {
          return preg_match($expected, $actual);
        } else {
          return $expected === $actual;
        }
      };
    }
    return $comparators;
  }