function testRaiseExceptionWhenOpeningAFileThatDoesNotExist() { $testFileName = $this->getTempFileName('hahahaha.js'); $this->setExpectedException('Asar\\File\\Exception\\FileDoesNotExist', "File::open failed. The file '{$testFileName}' does not exist."); File::open($testFileName); }