phpmock\functions\FixedMicrotimeFunctionTest::testConstruct PHP Метод

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

Tests initializing with a timestamp.
public testConstruct ( mixed $timestamp, float $expected )
$timestamp mixed The tested timestamp.
$expected float The expected timestamp.
    public function testConstruct($timestamp, $expected)
    {
        $function = new FixedMicrotimeFunction($timestamp);
        $this->assertEquals($expected, $function->getMicrotime(true));
    }