Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14021956
D13892.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13892.diff
View Options
diff --git a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
--- a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
+++ b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
@@ -108,6 +108,7 @@
$test_engine->setPaths($paths);
}
+ $test_engine->setConfigurationManager($this->getConfigurationManager());
$built_test_engines[] = $test_engine;
}
diff --git a/src/unit/engine/PhpunitTestEngine.php b/src/unit/engine/PhpunitTestEngine.php
--- a/src/unit/engine/PhpunitTestEngine.php
+++ b/src/unit/engine/PhpunitTestEngine.php
@@ -10,6 +10,10 @@
private $affectedTests;
private $projectRoot;
+ public function getEngineConfigurationName() {
+ return 'phpunit';
+ }
+
public function run() {
$this->projectRoot = $this->getWorkingCopy()->getProjectRoot();
$this->affectedTests = array();
diff --git a/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php b/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php
--- a/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php
+++ b/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php
@@ -5,6 +5,11 @@
*/
final class PhpunitTestEngineTestCase extends PhutilTestCase {
+ public function testGetEngineConfigurationName() {
+ $engine = new PhpunitTestEngine();
+ $this->assertEqual('phpunit', $engine->getEngineConfigurationName());
+ }
+
public function testSearchLocations() {
$path = '/path/to/some/file/X.php';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 2:09 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728705
Default Alt Text
D13892.diff (1 KB)
Attached To
Mode
D13892: Get PhpunitTestEngine in working order
Attached
Detach File
Event Timeline
Log In to Comment