Skip to content

Commit

Permalink
[TEST] (Fix) Better context to true/false failures
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Sep 16, 2016
1 parent 9df055b commit a9ee47d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Elasticsearch/Tests/YamlRunnerTest.php
Expand Up @@ -379,7 +379,7 @@ public function operationIsFalse($operation, $lastOperationResult, &$context, $t
{
$value = (bool)$this->resolveValue($lastOperationResult, $operation, $context);
$msg = "Failed to assert that a value is false in test \"$testName\"\n"
."$operation was [$value]"
."$operation was [".print_r($value, true)."]"
.var_export($lastOperationResult, true);
static::assertFalse($value, $msg);

Expand All @@ -398,7 +398,7 @@ public function operationIsTrue($operation, $lastOperationResult, &$context, $te
$value = $this->resolveValue($lastOperationResult, $operation, $context);

$msg = "Failed to assert that a value is true in test \"$testName\"\n"
."$operation was [$value]"
."$operation was [".print_r($value, true)."]"
.var_export($lastOperationResult, true);
static::assertNotEquals(0, $value, $msg);
static::assertNotFalse($value, $msg);
Expand Down

0 comments on commit a9ee47d

Please sign in to comment.