addFiles([$testFile]); $compiler->prepareFile($testFile); $compiler->convertFile($testFile); $this->addToAssertionCount(1); } protected function exec(string $expected, string $file): void { try { $this->compile($file); } catch (TestError $exception) { $this->assertStringContainsString($expected, $exception->getMessage()); return; } $this->fail(); } }