PhpBench\Tests\Unit\Util\TimeUnitTest::testConvertThroughput PHP Метод

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

It should convert one time unit to another in throughput mode.
public testConvertThroughput ( $time, $unit, $destUnit, $expectedThroughput )
    public function testConvertThroughput($time, $unit, $destUnit, $expectedThroughput)
    {
        $unit = new TimeUnit($unit, $destUnit);
        $result = $unit->toDestUnit($time, null, TimeUnit::MODE_THROUGHPUT);
        $this->assertEquals($expectedThroughput, $result);
    }