/**
  * Given a file object, load and parse its contents as a manifest file.
  * If there are errors, they are create as an array of strings and returned
  * in $errors, and null is returned.
  * @param File $file		The file to parse
  * @param mixed $errors		Errors are passed back here, or null if there
  *							are none.
  */
 function loadManifestFile($file, &$errors)
 {
     $manifest = new DynamicTemplateManifest();
     $errors = $manifest->loadFromFile($file);
     if (count($errors) == 0) {
         return $manifest;
     }
     return null;
 }
 function testManifestHelpers()
 {
     $this->assertEquals(DynamicTemplateManifest::get_extension('file.ss'), '.ss', 'get extension successfully strips an extension');
     $this->assertEquals(DynamicTemplateManifest::get_extension('path.with.dot/file.tar.gz'), '.gz', 'get extension on path with lots of dots');
 }