Skip to content

Commit

Permalink
TypeInferenceTestCase - do not allow files with no assertds
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 11, 2022
1 parent 2177d4e commit d0207ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Testing/TypeInferenceTestCase.php
Expand Up @@ -177,6 +177,10 @@ public function gatherAssertTypes(string $file): array
$asserts[$file . ':' . $node->getLine()] = $assert;
});

if (count($asserts) === 0) {
$this->fail(sprintf('File %s does not contain any asserts', $file));
}

return $asserts;
}

Expand Down

0 comments on commit d0207ed

Please sign in to comment.