function it_renames_file() { $this->rename('filename', 'aaa/filename2')->shouldReturn(true); $this->exists('filename')->shouldReturn(false); $this->exists('aaa/filename2')->shouldReturn(true); }