Skip to content

Commit

Permalink
RuleTestCase - throw internal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 25, 2021
1 parent b156ac6 commit 93806cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Testing/RuleTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ protected function getStaticMethodTypeSpecifyingExtensions(): array
public function analyse(array $files, array $expectedErrors): void
{
$files = array_map([$this->getFileHelper(), 'normalizePath'], $files);
$analyserResult = $this->getAnalyser()->analyse($files);
$analyserResult = $this->getAnalyser()->analyse(
$files,
null,
null,
true
);
if (count($analyserResult->getInternalErrors()) > 0) {
$this->fail(implode("\n", $analyserResult->getInternalErrors()));

This comment has been minimized.

Copy link
@mvorisek

mvorisek May 25, 2021

Contributor

not sure if this is needed then

}
Expand Down

0 comments on commit 93806cb

Please sign in to comment.