use PHPUnit\Framework\TestCase;
use Symfony\Component\Stopwatch\StopwatchPeriod;
class StopwatchPeriodTest extends TestCase
{ /**
* @dataProvider provideTimeValues
*/
public function testGetStartTime($start,
$useMorePrecision,
$expected) { $period =
new StopwatchPeriod($start,
$start,
$useMorePrecision);
$this->
assertSame($expected,
$period->
getStartTime());
} /**
* @dataProvider provideTimeValues
*/
public function testGetEndTime($end,
$useMorePrecision,
$expected) { $period =
new StopwatchPeriod($end,
$end,
$useMorePrecision);
$this->
assertSame($expected,
$period->
getEndTime());
}