Author: Kris.Wallsmith
Date: 2010-01-11 07:53:59 +0100 (Mon, 11 Jan 2010)
New Revision: 26469
Modified:
plugins/sfTaskExtraPlugin/branches/1.3/lib/task/generator/sfGenerateTestTask.class.php
plugins/sfTaskExtraPlugin/branches/1.3/package.xml.tmpl
Log:
[sfTaskExtraPlugin] [1.3] Fixed bug when generating a test stub for a class in
a plugin with no test directory
Modified:
plugins/sfTaskExtraPlugin/branches/1.3/lib/task/generator/sfGenerateTestTask.class.php
===================================================================
---
plugins/sfTaskExtraPlugin/branches/1.3/lib/task/generator/sfGenerateTestTask.class.php
2010-01-11 03:47:39 UTC (rev 26468)
+++
plugins/sfTaskExtraPlugin/branches/1.3/lib/task/generator/sfGenerateTestTask.class.php
2010-01-11 06:53:59 UTC (rev 26469)
@@ -138,7 +138,13 @@
{
if (0 === strpos($path, $pluginLibDir))
{
- return array($pluginLibDir, realpath($pluginLibDir.'/../test'));
+ // create the test directory before normalizing its path
+ if (!file_exists($testDir = $pluginLibDir.'/../test'))
+ {
+ $this->getFilesystem()->mkdirs($testDir);
+ }
+
+ return array($pluginLibDir, realpath($testDir));
}
}
}
Modified: plugins/sfTaskExtraPlugin/branches/1.3/package.xml.tmpl
===================================================================
--- plugins/sfTaskExtraPlugin/branches/1.3/package.xml.tmpl 2010-01-11
03:47:39 UTC (rev 26468)
+++ plugins/sfTaskExtraPlugin/branches/1.3/package.xml.tmpl 2010-01-11
06:53:59 UTC (rev 26469)
@@ -115,5 +115,21 @@
* Updated `plugin:package` task to use charset from `settings.yml`
when creating `package.xml`
</notes>
</release>
+ <release>
+ <version>
+ <release>1.3.2</release>
+ <api>1.3.0</api>
+ </version>
+ <stability>
+ <release>stable</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.symfony-project.com/license">MIT
license</license>
+ <license>MIT</license>
+ <date>soon</date>
+ <notes>
+ * Fixed bug when generating a test stub for a class in a plugin with
no test directory
+ </notes>
+ </release>
</changelog>
</package>
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.