@@ -33,55 +33,55 @@ protected function setUp(): void
3333 $ this ->factory = new TableGatewayAbstractFactory ();
3434 }
3535
36- public function testWillNotCreateServiceWithoutAppropriateSuffix ()
36+ public function testWillNotCreateServiceWithoutAppropriateSuffix (): void
3737 {
3838 $ this ->services ->has ('config ' )->shouldNotBeCalled ();
3939 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo ' ));
4040 }
4141
42- public function testWillNotCreateServiceIfConfigServiceIsMissing ()
42+ public function testWillNotCreateServiceIfConfigServiceIsMissing (): void
4343 {
4444 $ this ->services ->has ('config ' )->willReturn (false );
4545 $ this ->services ->get ('config ' )->shouldNotBeCalled ();
4646 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
4747 }
4848
49- public function testWillNotCreateServiceIfMissingApiToolsConfig ()
49+ public function testWillNotCreateServiceIfMissingApiToolsConfig (): void
5050 {
5151 $ this ->services ->has ('config ' )->willReturn (true );
5252 $ this ->services ->get ('config ' )->willReturn ([]);
5353 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
5454 }
5555
56- public function testWillNotCreateServiceIfMissingDbConnectedConfigSegment ()
56+ public function testWillNotCreateServiceIfMissingDbConnectedConfigSegment (): void
5757 {
5858 $ this ->services ->has ('config ' )->willReturn (true );
5959 $ this ->services ->get ('config ' )->willReturn (['api-tools ' => []]);
6060 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
6161 }
6262
63- public function testWillNotCreateServiceIfMissingServiceSubSegment ()
63+ public function testWillNotCreateServiceIfMissingServiceSubSegment (): void
6464 {
6565 $ this ->services ->has ('config ' )->willReturn (true );
6666 $ this ->services ->get ('config ' )->willReturn (['api-tools ' => ['db-connected ' => []]]);
6767 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
6868 }
6969
70- public function testWillNotCreateServiceIfServiceSubSegmentIsInvalid ()
70+ public function testWillNotCreateServiceIfServiceSubSegmentIsInvalid (): void
7171 {
7272 $ this ->services ->has ('config ' )->willReturn (true );
7373 $ this ->services ->get ('config ' )->willReturn (['api-tools ' => ['db-connected ' => ['Foo ' => 'invalid ' ]]]);
7474 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
7575 }
7676
77- public function testWillNotCreateServiceIfServiceSubSegmentDoesNotContainTableName ()
77+ public function testWillNotCreateServiceIfServiceSubSegmentDoesNotContainTableName (): void
7878 {
7979 $ this ->services ->has ('config ' )->willReturn (true );
8080 $ this ->services ->get ('config ' )->willReturn (['api-tools ' => ['db-connected ' => ['Foo ' => []]]]);
8181 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
8282 }
8383
84- public function testWillNotCreateServiceIfServiceSubSegmentDoesNotContainAdapterInformation ()
84+ public function testWillNotCreateServiceIfServiceSubSegmentDoesNotContainAdapterInformation (): void
8585 {
8686 $ this ->services ->has ('config ' )->willReturn (true );
8787 $ this ->services ->get ('config ' )
@@ -102,7 +102,7 @@ public function testWillNotCreateServiceIfServiceSubSegmentDoesNotContainAdapter
102102 $ this ->assertFalse ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
103103 }
104104
105- public function testWillCreateServiceIfConfigContainsValidTableNameAndAdapterName ()
105+ public function testWillCreateServiceIfConfigContainsValidTableNameAndAdapterName (): void
106106 {
107107 $ this ->services ->has ('config ' )->willReturn (true );
108108 $ this ->services ->get ('config ' )
@@ -121,7 +121,8 @@ public function testWillCreateServiceIfConfigContainsValidTableNameAndAdapterNam
121121 $ this ->assertTrue ($ this ->factory ->canCreate ($ this ->services ->reveal (), 'Foo\Table ' ));
122122 }
123123
124- public function testWillCreateServiceIfConfigContainsValidTableNameNoAdapterNameAndServicesContainDefaultAdapter ()
124+ // phpcs:ignore Generic.Files.LineLength.TooLong
125+ public function testWillCreateServiceIfConfigContainsValidTableNameNoAdapterNameAndServicesContainDefaultAdapter (): void
125126 {
126127 $ this ->services ->has ('config ' )->willReturn (true );
127128 $ this ->services ->get ('config ' )
@@ -154,7 +155,7 @@ public function validConfig(): array
154155 /**
155156 * @dataProvider validConfig
156157 */
157- public function testFactoryReturnsTableGatewayInstanceBasedOnConfiguration (string $ adapterServiceName )
158+ public function testFactoryReturnsTableGatewayInstanceBasedOnConfiguration (string $ adapterServiceName ): void
158159 {
159160 $ hydrator = $ this ->prophesize ($ this ->getClassMethodsHydratorClassName ())->reveal ();
160161
@@ -208,7 +209,7 @@ public function testFactoryReturnsTableGatewayInstanceBasedOnConfiguration(strin
208209 */
209210 public function testFactoryReturnsTableGatewayInstanceBasedOnConfigurationWithoutLaminasRest (
210211 string $ adapterServiceName
211- ) {
212+ ): void {
212213 $ hydrator = $ this ->prophesize ($ this ->getClassMethodsHydratorClassName ())->reveal ();
213214
214215 $ hydrators = $ this ->prophesize (HydratorPluginManager::class);
0 commit comments