Created testutils class
This commit is contained in:
parent
6a24eaf84a
commit
e549b31549
13
dev_mvc/controller/TestUtils.php
Normal file
13
dev_mvc/controller/TestUtils.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class TestUtils{
|
||||||
|
public static $log = [];
|
||||||
|
public static $status;
|
||||||
|
public static function log($output, $status = "OK"){
|
||||||
|
array_push(self::log, ["message" => $output, "status" => $status]);
|
||||||
|
}
|
||||||
|
public static function returnLog(){
|
||||||
|
echo(json_encode(self::$log));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user