fix running test cases from browser
This commit is contained in:
parent
b30da61d59
commit
e031b9b880
|
@ -32,8 +32,7 @@ $testSuiteName="ownCloud Unit Test Suite";
|
||||||
if(OC::$CLI){
|
if(OC::$CLI){
|
||||||
$reporter=new TextReporter;
|
$reporter=new TextReporter;
|
||||||
$test=isset($_SERVER['argv'][1])?$_SERVER['argv'][1]:false;
|
$test=isset($_SERVER['argv'][1])?$_SERVER['argv'][1]:false;
|
||||||
if($test=='xml')
|
if($test=='xml'){
|
||||||
{
|
|
||||||
$reporter= new XmlReporter;
|
$reporter= new XmlReporter;
|
||||||
$test=false;
|
$test=false;
|
||||||
|
|
||||||
|
@ -42,7 +41,7 @@ if(OC::$CLI){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$reporter='HtmlReporter';
|
$reporter=new HtmlReporter;
|
||||||
$test=isset($_GET['test'])?$_GET['test']:false;
|
$test=isset($_GET['test'])?$_GET['test']:false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue