grantsAccess() public method

Checks whether the .htaccess file grants access via HTTP.
public grantsAccess ( ) : boolean
return boolean
 /**
  * Tests a file that does not grant access.
  */
 public function testDoesNotGrantAccess()
 {
     $file = new SplFileInfo($this->getRootDir() . '/system/modules/foobar/private/.htaccess', 'system/modules/foobar/private', 'system/modules/foobar/private/.htaccess');
     $htaccess = new HtaccessAnalyzer($file);
     $this->assertFalse($htaccess->grantsAccess());
 }