Skip to content

Commit

Permalink
Make test fail on Yaml parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz committed Jul 29, 2016
1 parent f2acb43 commit f1b3adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Elasticsearch/Tests/YamlRunnerTest.php
Expand Up @@ -265,7 +265,7 @@ public function testYaml()
$yamlDocs[] = $tDoc;
}
} catch (ParseException $e) {
printf("Unable to parse the YAML string: %s", $e->getMessage());
$this->fail(sprintf("Unable to parse the YAML string: %s in file %s", $e->getMessage(), $testFile));
}
}

Expand Down Expand Up @@ -332,7 +332,7 @@ public function testFutureModeYaml()
$yamlDocs[] = $tDoc;
}
} catch (ParseException $e) {
printf("Unable to parse the YAML string: %s", $e->getMessage());
$this->fail(sprintf("Unable to parse the YAML string: %s in file %s", $e->getMessage(), $testFile));
}
}

Expand Down

0 comments on commit f1b3adb

Please sign in to comment.