// Outputs the value text.
private static function LogValue()
{
$output = new Output("CommonTest", "Output.LogValue");
$output->Method = "Output.LogValue";
// Cast array to stdClass object.
$object = (object) [
"Name" => "John",
"Number" => 5,
];
$value = LJC::CreateJSON($object);
$lineNumber = __line__;
// Log value.
$result = $output->LogValue($lineNumber, "\$value", $value, output: false);
$compare = "\r\n{$lineNumber} \$value = {\"Name\":\"John\",\"Number\":5}";
LJC::OutputLogCompare("Output.Log()", $result, $compare);
}
|