/** * @test */ public function getUniqueFileOrFolderPathWithEmptyPathThrowsException() { $this->setExpectedException('InvalidArgumentException', 'The first parameter $path must not be empty.'); $this->subject->getUniqueFileOrFolderPath(''); }