Permalink
Browse files

- Merge [3505].

  • Loading branch information...
1 parent 8bd2002 commit 13e514b58d99b07a4a1867d65f997730019be819 @sebastianbergmann committed Jul 22, 2008
Showing with 5 additions and 4 deletions.
  1. +1 −1 PHPUnit/Util/Skeleton/Class.php
  2. +4 −3 PHPUnit/Util/Skeleton/Test.php
@@ -95,7 +95,7 @@ public function __construct($inClassName, $inSourceFile = '')
$this->inClassName = $inClassName;
$this->outClassName = substr($inClassName, 0, strlen($inClassName) - 4);
- $this->outSourceFile = $this->outClassName . '.php';
+ $this->outSourceFile = dirname($inSourceFile) . DIRECTORY_SEPARATOR . $this->outClassName . '.php';
}
/**
@@ -78,9 +78,8 @@ class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton
*/
public function __construct($inClassName, $inSourceFile = '')
{
- $this->inClassName = $inClassName;
- $this->outClassName = $inClassName . 'Test';
- $this->outSourceFile = $inClassName . 'Test.php';
+ $this->inClassName = $inClassName;
+ $this->outClassName = $inClassName . 'Test';
if (class_exists($inClassName)) {
$this->inSourceFile = '<internal>';
@@ -132,6 +131,8 @@ public function __construct($inClassName, $inSourceFile = '')
)
);
}
+
+ $this->outSourceFile = dirname($inSourceFile) . DIRECTORY_SEPARATOR . $this->inClassName . 'Test.php';
}
/**

0 comments on commit 13e514b

Please sign in to comment.