} public function testHref() { $prevTerminalEmulator =
getenv('TERMINAL_EMULATOR'
);
putenv('TERMINAL_EMULATOR'
);
$style =
new OutputFormatterStyle();
try { $style->
setHref('idea://open/?file=/path/SomeFile.php&line=12'
);
$this->
assertSame("\e]8;;idea://open/?file=/path/SomeFile.php&line=12\e\\some URL\e]8;;\e\\",
$style->
apply('some URL'
));
} finally { putenv('TERMINAL_EMULATOR'.
($prevTerminalEmulator ? "=
$prevTerminalEmulator" : ''
));
} }}