public function setUp() { parent::setUp(); $file = File::createFromPath(__FILE__, __DIR__); $this->useStatement = new UseStatement($file, LineRange::fromLines(3, 5)); }
/** * @param string $path Path to extension's install package file * @param string $name Override file name * * @return Extension * @throws \Exception */ public function setFile($path, $name = null) { $this->file = File::createFromPath($path, $name); return $this; }