1. Michael Gatto
  2. VersionControl_Hg

Commits

Michael Gatto  committed a20c477

* Simplify this functional test.

  • Participants
  • Parent commits 977a1be
  • Branches default

Comments (0)

Files changed (1)

File src/Tests/Functional/test_HgExecutable.php

View file
 $hg = new VersionControl_Hg();
 
 /* using default executable found on system path */
-var_dump($hg->getHgExecutable());
+var_dump($hg->getExecutable());
+
+die;
+
 
 /* invalid executable */
 try {
-    $hg->setHgExecutable("C:\Documents and Settings\mgatto\My Documents");
-    var_dump($hg->getHgExecutable());
+    $hg->setExecutable("C:\Documents and Settings\mgatto\My Documents");
+    var_dump($hg->getExecutable());
 }
 catch (Exception $e) {
     var_dump($e->getMessage());
 
 /* non-existant path */
 try {
-    $hg->setHgExecutable("C:\Mercurial");
-    var_dump($hg->getHgExecutable());
+    $hg->setExecutable("C:\Mercurial");
+    var_dump($hg->getExecutable());
 }
 catch (Exception $e) {
     var_dump($e->getMessage());
 }
 
 /* valid, alternative executable */
-$hg->setHgExecutable("C:\Program Files\Mercurial");
-var_dump($hg->getHgExecutable());
+$hg->setExecutable("C:\Program Files\TortoiseHg");
+var_dump($hg->getExecutable());