Author: Markus Malkusch (markus@malkusch.de)
 /**
  * Tests convertTokensToMicrotime().
  *
  * @param double $delta  The expected delta.
  * @param int    $tokens The tokens.
  * @param Rate   $rate   The rate.
  *
  * @test
  * @dataProvider provideTestConvertTokensToMicrotime
  */
 public function testConvertTokensToMicrotime($delta, $tokens, Rate $rate)
 {
     $microtime = $this->getFunctionMock(__NAMESPACE__, "microtime");
     $microtime->expects($this->any())->willReturn(100000);
     $converter = new TokenConverter($rate);
     $this->assertEquals(microtime(true) + $delta, $converter->convertTokensToMicrotime($tokens));
 }