addFile('somefile.php', $phpCode); $context = new Context(); $this->expectException(CodeException::class); $this->expectExceptionMessage("UnresolvableInclude - somefile.php:$expectedExceptionLine:"); $this->analyzeFile('somefile.php', $context); } /** * @return array */ public function providerUnresolvableInclude(): array { return [ 'basic' => [ 'code' => ' 3, ], ]; } /** * @dataProvider providerNoUnresolvableInclude */ public function testShouldNotThrowUnresolvableInclude(string $phpCode): void { $this->addFile('somefile.php', $phpCode); $context = new Context(); $this->analyzeFile('somefile.php', $context); } /** * @return array */ public function providerNoUnresolvableInclude(): array { return [ 'github_issue_908_file_exists' => [ 'code' => ' [ 'code' => '