public function testSourceTargetFilesSamePath() { $src = __DIR__ . '/files/test.txt'; $this->crypt->setSourceFilePath($src); $this->crypt->setTargetFilePath($src); $this->setExpectedException('Exception', 'Source and target file locations should be different'); $this->crypt->encryptFile(); }