foo\ExampleTest::testExample3 PHP Метод

testExample3() публичный Метод

Tests the example from the documentation.
public testExample3 ( )
    public function testExample3()
    {
        $builder = new SleepEnvironmentBuilder();
        $builder->addNamespace(__NAMESPACE__)->setTimestamp(12345);
        $environment = $builder->build();
        $environment->enable();
        sleep(10);
        assert(12345 + 10 == time());
        $this->assertEquals(12345 + 10, time());
    }