/** * @test */ public function setUploadFolderPathAfterCreatingDummyFileThrowsException() { $this->setExpectedException('BadMethodCallException', 'The upload folder path must not be changed if there are already dummy files or folders.'); $this->subject->createDummyFile(); $this->subject->setUploadFolderPath('/foo/bar/'); }