Author: maksim_ka
Date: 2010-02-03 10:21:11 +0100 (Wed, 03 Feb 2010)
New Revision: 27477
Modified:
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfBasePhpunitTestSuite.class.php
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfPhpunitSuiteLoader.class.php
Log:
[sfPhpunitPlugin][sf1.2] fix next errors:
- multiple contexts didnot supported different environment
- suites did not cathced by the loader automatically
Modified:
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfBasePhpunitTestSuite.class.php
===================================================================
---
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfBasePhpunitTestSuite.class.php
2010-02-03 09:04:06 UTC (rev 27476)
+++
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfBasePhpunitTestSuite.class.php
2010-02-03 09:21:11 UTC (rev 27477)
@@ -83,13 +83,14 @@
$app = $this->getApplication();
$env = $this->getEnvironment();
+ $name = $app.'-'.$env;
- if (!sfContext::hasInstance($app)) {
+ if (!sfContext::hasInstance($name)) {
sfContext::createInstance(
- ProjectConfiguration::getApplicationConfiguration($app, $env,
true), $app);
+ ProjectConfiguration::getApplicationConfiguration($app, $env,
true), $name);
}
- sfContext::switchTo($app);
+ sfContext::switchTo($name);
}
/**
Modified:
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfPhpunitSuiteLoader.class.php
===================================================================
---
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfPhpunitSuiteLoader.class.php
2010-02-03 09:04:06 UTC (rev 27476)
+++
plugins/sfPhpunitPlugin/branches/1.2/lib/test/sfPhpunitSuiteLoader.class.php
2010-02-03 09:21:11 UTC (rev 27477)
@@ -73,6 +73,7 @@
}
foreach ($dirs as $dir) {
+ $test_dir .= '/'.$dir;
$suite->addTestSuite($suite_next =
$this->_getTestSuiteForDir($test_dir));
$suite = $suite_next;
}
--
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.