randNum(["随机数", "1", "5"]); $out = ob_get_clean(); $this->assertEquals("随机数是:1\n", $out); } }