1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 18:30:15 +02:00

Make hg test optional

This commit is contained in:
Jordi Boggiano
2016-09-25 16:47:31 +02:00
parent 240b7458dd
commit ffc421a4fd

View File

@@ -20,6 +20,16 @@ class MercurialProcessorTest extends TestCase
*/
public function testProcessor()
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
exec("where hg 2>NUL", $output, $result);
} else {
exec("which hg 2>/dev/null >/dev/null", $output, $result);
}
if ($result != 0) {
$this->markTestSkipped('hg is missing');
return;
}
`hg init`;
$processor = new MercurialProcessor();
$record = $processor($this->getRecord());