66use Carbon \Carbon ;
77use Emul \ArrayToClassMapper \Mapper ;
88use Emul \ArrayToClassMapper \DocBlock \DocBlockParser ;
9- use Emul \ArrayToClassMapper \DocBlock \Entity \DocblockType ;
9+ use Emul \ArrayToClassMapper \DocBlock \Entity \DocBlockType ;
1010use Emul \ArrayToClassMapper \Test \Unit \Stub \CustomDocBlockTypeArrayStub ;
1111use Emul \ArrayToClassMapper \Test \Unit \Stub \CustomDocBlockTypedStub ;
1212use Emul \ArrayToClassMapper \Test \Unit \Stub \CustomTypedStub ;
@@ -61,7 +61,7 @@ public function testMapWhenArrayTypedPropertyGivenWithBuiltInDockBlockType_shoul
6161 {
6262 $ mapper = $ this ->getMapper ();
6363
64- $ this ->expectTypeRetrievedFromDocBlock ('/** @var int[] */ ' , new DocblockType ('int ' , false , true , false ));
64+ $ this ->expectTypeRetrievedFromDocBlock ('/** @var int[] */ ' , new DocBlockType ('int ' , false , true , false ));
6565
6666 $ input = [
6767 'scalarTypedArray ' => ['1 ' , '2 ' ],
@@ -80,7 +80,7 @@ public function testMapWhenArrayTypedPropertyGivenWithCustomDockBlockType_should
8080 $ this ->expectTypeRetrievedFromDocBlock ('' , null );
8181 $ this ->expectTypeRetrievedFromDocBlock (
8282 '/** @var \Emul\ArrayToClassMapper\Test\Unit\Stub\ScalarTypedStub[] */ ' ,
83- new DocblockType ('\Emul\ArrayToClassMapper\Test\Unit\Stub\ScalarTypedStub ' , false , false , false )
83+ new DocBlockType ('\Emul\ArrayToClassMapper\Test\Unit\Stub\ScalarTypedStub ' , false , false , false )
8484 );
8585
8686 $ input = [
@@ -137,7 +137,7 @@ public function testMapWhenScalarDocBlockTypePropertyGiven_shouldCastToDocumente
137137 {
138138 $ mapper = $ this ->getMapper ();
139139
140- $ this ->expectTypeRetrievedFromDocBlock ('/** @var int|null */ ' , new DocblockType ('int ' , true , true , true ));
140+ $ this ->expectTypeRetrievedFromDocBlock ('/** @var int|null */ ' , new DocBlockType ('int ' , true , true , true ));
141141
142142 $ input = ['int ' => '1 ' ];
143143
@@ -151,7 +151,7 @@ public function testMapWhenCustomDocBlockTypedPropertyGiven_shouldMapWithGivenMa
151151 {
152152 $ currentTime = '2020-01-01 01:01:01 ' ;
153153
154- $ this ->expectTypeRetrievedFromDocBlock ('/** @var \Carbon\Carbon */ ' , new DocblockType ('\Carbon\Carbon ' , true , false , false ));
154+ $ this ->expectTypeRetrievedFromDocBlock ('/** @var \Carbon\Carbon */ ' , new DocBlockType ('\Carbon\Carbon ' , true , false , false ));
155155
156156 $ input = ['currentTime ' => $ currentTime ];
157157 $ customMapper = \Closure::fromCallable (function (string $ timeString ) {
@@ -167,7 +167,7 @@ public function testMapWhenCustomDocBlockTypedPropertyGiven_shouldMapWithGivenMa
167167 $ this ->assertSame ($ currentTime , $ result ->getCurrentTime ()->toDateTimeString ());
168168 }
169169
170- private function expectTypeRetrievedFromDocBlock (string $ docBlock , ?DocblockType $ expectedResult )
170+ private function expectTypeRetrievedFromDocBlock (string $ docBlock , ?DocBlockType $ expectedResult )
171171 {
172172 $ this ->docBlockParser ->shouldReceive ('getType ' )->with ($ docBlock )->andReturn ($ expectedResult );
173173 }
0 commit comments