22
33namespace PhpMiddlewareTestTest \RequestId \Generator ;
44
5+ use PhpMiddleware \RequestId \Generator \RamseyUuid1Generator ;
6+ use PhpMiddleware \RequestId \Generator \RamseyUuid3Generator ;
7+ use PhpMiddleware \RequestId \Generator \RamseyUuid4Generator ;
8+ use PhpMiddleware \RequestId \Generator \RamseyUuid5Generator ;
59use PHPUnit_Framework_TestCase ;
610use Ramsey \Uuid \UuidFactoryInterface ;
711use Ramsey \Uuid \UuidInterface ;
@@ -21,7 +25,7 @@ protected function setUp()
2125
2226 public function testUuid1Generator ()
2327 {
24- $ generator = new \ PhpMiddleware \ RequestId \ Generator \ RamseyUuid1Generator ($ this ->factory );
28+ $ generator = new RamseyUuid1Generator ($ this ->factory );
2529 $ this ->factory ->method ('uuid1 ' )->willReturn ($ this ->uuid );
2630
2731 $ result = $ generator ->generateRequestId ();
@@ -31,7 +35,7 @@ public function testUuid1Generator()
3135
3236 public function testUuid3Generator ()
3337 {
34- $ generator = new \ PhpMiddleware \ RequestId \ Generator \ RamseyUuid3Generator ($ this ->factory , 'ns ' , 'name ' );
38+ $ generator = new RamseyUuid3Generator ($ this ->factory , 'ns ' , 'name ' );
3539 $ this ->factory ->method ('uuid3 ' )->with ('ns ' , 'name ' )->willReturn ($ this ->uuid );
3640
3741 $ result = $ generator ->generateRequestId ();
@@ -41,7 +45,7 @@ public function testUuid3Generator()
4145
4246 public function testUuid4Generator ()
4347 {
44- $ generator = new \ PhpMiddleware \ RequestId \ Generator \ RamseyUuid4Generator ($ this ->factory );
48+ $ generator = new RamseyUuid4Generator ($ this ->factory );
4549 $ this ->factory ->method ('uuid4 ' )->willReturn ($ this ->uuid );
4650
4751 $ result = $ generator ->generateRequestId ();
@@ -51,7 +55,7 @@ public function testUuid4Generator()
5155
5256 public function testUuid5Generator ()
5357 {
54- $ generator = new \ PhpMiddleware \ RequestId \ Generator \ RamseyUuid5Generator ($ this ->factory , 'ns ' , 'name ' );
58+ $ generator = new RamseyUuid5Generator ($ this ->factory , 'ns ' , 'name ' );
5559 $ this ->factory ->method ('uuid5 ' )->with ('ns ' , 'name ' )->willReturn ($ this ->uuid );
5660
5761 $ result = $ generator ->generateRequestId ();
0 commit comments