From 93806cb5d624fc15af01d9c11bbfa2689e3a97f9 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Tue, 25 May 2021 13:46:51 +0200 Subject: [PATCH] RuleTestCase - throw internal errors --- src/Testing/RuleTestCase.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Testing/RuleTestCase.php b/src/Testing/RuleTestCase.php index 044dfe394d..01f657065a 100644 --- a/src/Testing/RuleTestCase.php +++ b/src/Testing/RuleTestCase.php @@ -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())); }