use Symfony\Component\Console\CI\GithubActionReporter;
use Symfony\Component\Console\Output\BufferedOutput;
class GithubActionReporterTest extends TestCase
{ public function testIsGithubActionEnvironment() { $prev =
getenv('GITHUB_ACTIONS'
);
putenv('GITHUB_ACTIONS'
);
try { self::
assertFalse(GithubActionReporter::
isGithubActionEnvironment());
putenv('GITHUB_ACTIONS=1'
);
self::
assertTrue(GithubActionReporter::
isGithubActionEnvironment());
} finally { putenv('GITHUB_ACTIONS'.
($prev ? "=
$prev" : ''
));
} } /**
* @dataProvider annotationsFormatProvider
*/
public function testAnnotationsFormat(string
$type, string
$message, string
$file = null, int
$line = null, int
$col = null, string
$expected) {