/** * tests throwing an exception if the input file does not exist * * @group parser * @group sourcetest */ public function testGetLinesFromFileThrowsExceptionIfFileDoesNotExist() { $file = '/hopefully/this/file/does/not/exist'; $parser = new IniParser($file); $this->setExpectedException('\\InvalidArgumentException', 'File not found: ' . $file); $parser->getLinesFromFile(); }