foo\ExampleTest::testExample5 PHP Method

testExample5() public method

Tests the example from the documentation.
public testExample5 ( )
    public function testExample5()
    {
        $time = new Mock(__NAMESPACE__, "time", function () {
            return 3;
        });
        $time->enable();
        assert(3 == time());
    }