Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Merge [5087:5088].

  • Loading branch information...
commit 0363b242002f48f8ed5a1677328bc3194b4dc268 1 parent 2b3e04e
@sebastianbergmann authored
View
9 PHPUnit/Util/Skeleton/Template/TestClass.tpl.dist
@@ -5,19 +5,16 @@ require_once 'PHPUnit/Framework.php';{requireClassFile}
* Test class for {className}.
* Generated by PHPUnit on {date} at {time}.
*/
-class {testClassName} extends PHPUnit_Framework_TestCase
+class {testClassName} extends {namespaceSeparator}PHPUnit_Framework_TestCase
{
/**
- * @var {className}
- * @access protected
+ * @var {className}
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
- * @access protected
*/
protected function setUp()
{
@@ -27,8 +24,6 @@ class {testClassName} extends PHPUnit_Framework_TestCase
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
- * @access protected
*/
protected function tearDown()
{
View
15 PHPUnit/Util/Skeleton/Test.php
@@ -350,13 +350,14 @@ public function generate($verbose = FALSE)
$classTemplate->setVar(
array(
- 'namespace' => $namespace,
- 'className' => $this->inClassName['className'],
- 'testClassName' => $this->outClassName['className'],
- 'requireClassFile' => $requireClassFile,
- 'methods' => $methods . $incompleteMethods,
- 'date' => date('Y-m-d'),
- 'time' => date('H:i:s')
+ 'namespace' => $namespace,
+ 'namespaceSeparator' => !empty($namespace) ? '\\' : '',
+ 'className' => $this->inClassName['className'],
+ 'testClassName' => $this->outClassName['className'],
+ 'requireClassFile' => $requireClassFile,
+ 'methods' => $methods . $incompleteMethods,
+ 'date' => date('Y-m-d'),
+ 'time' => date('H:i:s')
)
);
Please sign in to comment.
Something went wrong with that request. Please try again.