diff --git a/tests/083.phpt b/tests/083.phpt new file mode 100644 index 00000000..38d4f0a2 --- /dev/null +++ b/tests/083.phpt @@ -0,0 +1,41 @@ +--TEST-- +Check for ReturnResponse in cli +--SKIPIF-- + +--INI-- +yaf.use_spl_autoload=0 +yaf.lowcase_path=0 +yaf.use_namespace=0 +--FILE-- + array( + "directory" => APPLICATION_PATH, + ), +); + +file_put_contents(APPLICATION_PATH . "/controllers/Index.php", <<getDispatcher()->returnResponse(true)->dispatch(new Yaf_Request_Simple("CLI", "Index","Index","index")); +var_dump($response->getBody()); +?> +--CLEAN-- + +--EXPECTF-- +string(4) "okey"