Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/XUnitTestEngine.php
Context not available. | |||||
foreach ($this->discoveryRules as $regex => $targets) { | foreach ($this->discoveryRules as $regex => $targets) { | ||||
$regex = str_replace('/', '\\/', $regex); | $regex = str_replace('/', '\\/', $regex); | ||||
foreach ($paths as $path) { | foreach ($paths as $path) { | ||||
if (preg_match('/'.$regex.'/', $path) === 1) { | if (@preg_match('/'.$regex.'/', $path) === 1) { | ||||
foreach ($targets as $target) { | foreach ($targets as $target) { | ||||
// Index 0 is the test project (.csproj file) | // Index 0 is the test project (.csproj file) | ||||
// Index 1 is the output assembly (.dll file) | // Index 1 is the output assembly (.dll file) | ||||
Context not available. | |||||
$platform = phutil_is_windows() ? 'Windows' : 'Linux'; | $platform = phutil_is_windows() ? 'Windows' : 'Linux'; | ||||
$files = Filesystem::listDirectory($this->projectRoot); | $files = Filesystem::listDirectory($this->projectRoot); | ||||
foreach ($files as $file) { | foreach ($files as $file) { | ||||
if (strtolower(substr($file, -4)) == '.sln') { | if (@strtolower(@substr($file, -4)) == '.sln') { | ||||
$parts = explode('.', $file); | $parts = @explode('.', $file); | ||||
$platform = $parts[count($parts) - 2]; | $platform = $parts[count($parts) - 2]; | ||||
break; | break; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0