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