Person in court required to testify.

A person present in court or before a judicial officer, may be required to testify in the same manner as if he were in attendance upon a subpoena issued by such court or officer.

[Code 1881 ยง 397; 1877 p 88 ยง 399; 1869 p 106 ยง 392; 1854 p 188 ยง 299; RRS ยง 1219.]