function it_can_open_existing_files(File $file, Editor $editor) { $editor->open(self::FILENAME)->willReturn($file); $this->open(self::FILENAME)->shouldBe($file); }