/** * @test */ public function replaceFileFailsIfLocalFileDoesNotExist() { $this->setExpectedException('InvalidArgumentException', '', 1325842622); $this->prepareSubject(array(), true); $mockedFile = $this->getSimpleFileMock('/someFile'); $this->subject->replaceFile($mockedFile, PATH_site . $this->getUniqueId()); }
/** * @test */ public function replaceFileFailsIfLocalFileDoesNotExist() { $this->setExpectedException('InvalidArgumentException', '', 1325842622); $this->prepareFixture(array(), TRUE); $mockedFile = $this->getSimpleFileMock('/someFile'); $this->fixture->replaceFile($mockedFile, PATH_site . uniqid()); }