/** * @test */ public function getPathRelativeToUploadDirectoryWithPathOutsideUploadDirectoryThrowsException() { $this->setExpectedException('InvalidArgumentException', 'The first parameter $absolutePath is not within the calling extension\'s upload directory.'); $this->subject->getPathRelativeToUploadDirectory(PATH_site); }