Author: maksim_ka
Date: 2010-02-10 21:49:23 +0100 (Wed, 10 Feb 2010)
New Revision: 27855
Modified:
plugins/sfPhpunitPlugin/branches/1.4/lib/task/sfPhpunitRuntestTask.class.php
plugins/sfPhpunitPlugin/branches/1.4/lib/test/sfBasePhpunitTestSuite.class.php
Log:
[sfPhpunitPlugin][sf1.4] the default environment can be set in runtime using
the --env option
Modified:
plugins/sfPhpunitPlugin/branches/1.4/lib/task/sfPhpunitRuntestTask.class.php
===================================================================
---
plugins/sfPhpunitPlugin/branches/1.4/lib/task/sfPhpunitRuntestTask.class.php
2010-02-10 20:48:47 UTC (rev 27854)
+++
plugins/sfPhpunitPlugin/branches/1.4/lib/task/sfPhpunitRuntestTask.class.php
2010-02-10 20:49:23 UTC (rev 27855)
@@ -24,9 +24,9 @@
new sfCommandOption('log-pmd', null,
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
new sfCommandOption('log-metrics', null,
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
new sfCommandOption('coverage-clover', null,
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
- new sfCommandOption('coverage-html', null,
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null)));
+ new sfCommandOption('coverage-html', null,
sfCommandOption::PARAMETER_OPTIONAL, 'The connection name', null),
+ new sfCommandOption('env', null, sfCommandOption::PARAMETER_OPTIONAL,
'The envirement name', 'test')));
-
$this->namespace = 'phpunit';
$this->name = 'runtest';
$this->briefDescription = 'Runs PHPUnit tests';
Modified:
plugins/sfPhpunitPlugin/branches/1.4/lib/test/sfBasePhpunitTestSuite.class.php
===================================================================
---
plugins/sfPhpunitPlugin/branches/1.4/lib/test/sfBasePhpunitTestSuite.class.php
2010-02-10 20:48:47 UTC (rev 27854)
+++
plugins/sfPhpunitPlugin/branches/1.4/lib/test/sfBasePhpunitTestSuite.class.php
2010-02-10 20:49:23 UTC (rev 27855)
@@ -103,7 +103,7 @@
*/
public function getEnvironment()
{
- return 'test';
+ return sfConfig::get('sf_environment');
}
public function getPackageFixtureDir()
--
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.