1. Michael Gatto
  2. VersionControl_Hg

Source

VersionControl_Hg / Trunk / Tests / Functional / test_HgVersion.php

The default branch has multiple heads

Diff from to

File Trunk/Tests/Functional/test_HgVersion.php

 
 include_once '../../VersionControl/Hg.php';
 
-$hg = new VersionControl_Hg();
+$hg = new VersionControl_Hg('H:\Development\_Webroot\Trunk\Tests\Fixtures\Test_Repository');
 
 /* explicit accessor */
-var_dump($hg->getVersion());
+//var_dump($hg->getVersion());
 
-/* verbose for command related to Hg executable */
-var_dump($hg->version(array('verbose' => null)));
+var_dump($hg->version()->run(array('verbose' => null)));
+var_dump($hg->version()->run('verbose'));
 
-/* use quiet option for command related to Hg executable */
-var_dump($hg->version(array('quiet' => null)));
+/* getting the property */
+//echo $hg->version;
 
 /* misspelled option */
-var_dump($hg->version(array('quite' => null)));
+var_dump($hg->version()->run(array('quite' => null)));