foo\ExampleTest::testExample5 PHP 메소드

testExample5() 공개 메소드

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