Skip to content

Commit

Permalink
Quieting risky test warnings where tests do actually assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Burns committed Mar 31, 2017
1 parent 5bd7bd8 commit d138497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function assertValidDQL($dql, $debug = false)
{
try {
$parserResult = $this->parseDql($dql);
$this->addToAssertionCount(1);
} catch (QueryException $e) {
if ($debug) {
echo $e->getTraceAsString() . PHP_EOL;
Expand All @@ -44,6 +45,7 @@ public function assertInvalidDQL($dql, $debug = false)
echo $e->getMessage() . PHP_EOL;
echo $e->getTraceAsString() . PHP_EOL;
}
$this->addToAssertionCount(1);
}
}

Expand Down

0 comments on commit d138497

Please sign in to comment.