$includes * @return void */ public function testBasicRequire($file, $code, $includes = []) { foreach ($includes as $filename => $contents) { $this->project_checker->registerFile($filename, $contents); } $file_checker = new FileChecker( $file, $this->project_checker, self::$parser->parse($code) ); $file_checker->visitAndAnalyzeMethods(); } /** * @return array */ public function providerTestValidIncludes() { return [ 'basicRequire' => [ 'file' => getcwd() . DIRECTORY_SEPARATOR . 'file2.php', 'code' => ' [ getcwd() . DIRECTORY_SEPARATOR . 'file1.php' => ' [ 'file' => getcwd() . DIRECTORY_SEPARATOR . 'file3.php', 'code' => 'fooFoo(); } }', 'includes' => [ getcwd() . DIRECTORY_SEPARATOR . 'file1.php' => ' ' [ 'file' => getcwd() . DIRECTORY_SEPARATOR . 'file2.php', 'code' => ' [ getcwd() . DIRECTORY_SEPARATOR . 'file1.php' => ' [ 'file' => getcwd() . DIRECTORY_SEPARATOR . 'file2.php', 'code' => ' [ getcwd() . DIRECTORY_SEPARATOR . 'file1.php' => ' [ 'file' => getcwd() . DIRECTORY_SEPARATOR . 'file2.php', 'code' => ' [ getcwd() . DIRECTORY_SEPARATOR . 'file1.php' => '