1717use Ergebnis \PHPUnit \SlowTestDetector \Duration ;
1818use Ergebnis \PHPUnit \SlowTestDetector \SlowTest ;
1919use Ergebnis \PHPUnit \SlowTestDetector \Test ;
20+ use Ergebnis \PHPUnit \SlowTestDetector \TestDescription ;
2021use Ergebnis \PHPUnit \SlowTestDetector \TestIdentifier ;
2122use PHPUnit \Framework ;
2223
2526 *
2627 * @uses \Ergebnis\PHPUnit\SlowTestDetector\Duration
2728 * @uses \Ergebnis\PHPUnit\SlowTestDetector\SlowTest
29+ * @uses \Ergebnis\PHPUnit\SlowTestDetector\TestDescription
2830 * @uses \Ergebnis\PHPUnit\SlowTestDetector\TestIdentifier
2931 */
3032final class DefaultCollectorTest extends Framework \TestCase
@@ -37,12 +39,14 @@ public function testCollectCollectsSlowTests()
3739
3840 $ one = SlowTest::create (
3941 TestIdentifier::fromString ($ faker ->word ()),
42+ TestDescription::fromString ($ faker ->word ()),
4043 Duration::fromMilliseconds ($ faker ->numberBetween (0 )),
4144 Duration::fromMilliseconds ($ faker ->numberBetween (0 ))
4245 );
4346
4447 $ two = SlowTest::create (
4548 TestIdentifier::fromString ($ faker ->word ()),
49+ TestDescription::fromString ($ faker ->word ()),
4650 Duration::fromMilliseconds ($ faker ->numberBetween (0 )),
4751 Duration::fromMilliseconds ($ faker ->numberBetween (0 ))
4852 );
@@ -66,12 +70,14 @@ public function testCollectCollectsSlowerTestWithSameTestIdentifier()
6670
6771 $ one = SlowTest::create (
6872 TestIdentifier::fromString ($ faker ->word ()),
73+ TestDescription::fromString ($ faker ->word ()),
6974 Duration::fromMilliseconds ($ faker ->numberBetween (0 )),
7075 Duration::fromMilliseconds ($ faker ->numberBetween (0 , 999999999 - 1 ))
7176 );
7277
7378 $ two = SlowTest::create (
7479 $ one ->testIdentifier (),
80+ TestDescription::fromString ($ faker ->word ()),
7581 Duration::fromSecondsAndNanoseconds (
7682 $ one ->duration ()->seconds (),
7783 $ one ->duration ()->nanoseconds () + 1
@@ -97,12 +103,14 @@ public function testCollectDoesNotCollectFasterTestWithSameTestIdentifier()
97103
98104 $ one = SlowTest::create (
99105 TestIdentifier::fromString ($ faker ->word ()),
106+ TestDescription::fromString ($ faker ->word ()),
100107 Duration::fromMilliseconds ($ faker ->numberBetween (0 )),
101108 Duration::fromMilliseconds ($ faker ->numberBetween (1 , 999999999 ))
102109 );
103110
104111 $ two = SlowTest::create (
105112 $ one ->testIdentifier (),
113+ TestDescription::fromString ($ faker ->word ()),
106114 Duration::fromSecondsAndNanoseconds (
107115 $ one ->duration ()->seconds (),
108116 $ one ->duration ()->nanoseconds () - 1
0 commit comments