Support .n98-magerun2 stop-file in tests

Use stop-file instead of N98_MAGERUN2_TEST_MAGENTO_ROOT environment
variable.
This commit is contained in:
Tom Klingenberg committed 2016-05-22 20:00:58 +02:00
1 parent ba9d0ccc57
commit 81decd5eac
1 file changed
+5
@@ -39,6 +39,11 @@ class TestCase extends \PHPUnit_Framework_TestCase
}
$root = getenv('N98_MAGERUN2_TEST_MAGENTO_ROOT');
if (empty($root)) {
if ($buffer = rtrim(file_get_contents(getcwd() . '/.n98-magerun2'))) {
$root = $buffer;
}
}
if (empty($root)) {
$this->markTestSkipped(
'Please specify environment variable N98_MAGERUN2_TEST_MAGENTO_ROOT with path to your test ' .