[lang-ref] ( get_command_standard_output ) ( php )

<?php
public function testGetCommandStandardOutput(): void
{
	// shell_exec()

	$out = shell_exec('echo "aaa"');
	$out = rtrim($out, "\r\n");

	$this->assertSame('aaa', $out);
}