Skip to content

Commit b128883

Browse files
committed
Fix: Use appropriate system under test
1 parent f0a2b3b commit b128883

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/Unit/Attribute/MaximumDurationTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515

1616
use Ergebnis\DataProvider;
1717
use Ergebnis\PHPUnit\SlowTestDetector\Attribute;
18-
use Ergebnis\PHPUnit\SlowTestDetector\Duration;
1918
use Ergebnis\PHPUnit\SlowTestDetector\Exception;
2019
use Ergebnis\PHPUnit\SlowTestDetector\Test;
2120
use PHPUnit\Framework;
2221

2322
/**
2423
* @covers \Ergebnis\PHPUnit\SlowTestDetector\Attribute\MaximumDuration
2524
*
26-
* @uses \Ergebnis\PHPUnit\SlowTestDetector\Duration
2725
* @uses \Ergebnis\PHPUnit\SlowTestDetector\Exception\InvalidMilliseconds
2826
*/
2927
final class MaximumDurationTest extends Framework\TestCase
@@ -38,7 +36,7 @@ public function testConstructorRejectsInvalidValue(int $milliseconds): void
3836
{
3937
$this->expectException(Exception\InvalidMilliseconds::class);
4038

41-
Duration::fromMilliseconds($milliseconds);
39+
new Attribute\MaximumDuration($milliseconds);
4240
}
4341

4442
public function testConstructorSetsValue(): void

0 commit comments

Comments
 (0)