Commit 88054b30 authored by Antonio.Suerte's avatar Antonio.Suerte

Composing Tester

parent 87c6d3e9
<?php
require_once "../lib/FrameworkTest.php";
class ComposerRun extends FrameworkTest{
public function __construct(){
parent::__construct();
header("Content-type: text/json");
}
public function test(){
$returnCode = -VAL_INT_1;
$output = [];
exec("composer --version 2>&1", $output, $returnCode);
$result = [
"returnCode" => $returnCode,
"commandOutput" => $output
];
print_r($result);
}
}
$comp = new ComposerRun();
$comp -> test();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment