public function testRedefine() { $this->mockFunction(__NAMESPACE__, "getmyuid", function () { return 5; }); $this->assertEquals(5, getmyuid()); }