@@ -96,7 +96,7 @@ abstract class BaseCase extends TestCase
96
96
*
97
97
* @see initProperties()
98
98
*/
99
- public static function setupBeforeClass ($ fixtures = 'general/base ' )
99
+ public static function setupBeforeClass ($ fixtures = 'general/base ' ): void
100
100
{
101
101
self ::$ loader = ImplementationLoader::getInstance ();
102
102
@@ -120,7 +120,7 @@ public static function setupBeforeClass($fixtures = 'general/base')
120
120
self ::$ staticSharedFixture ['additionalSession ' ] = self ::$ loader ->getAdditionalSession ();
121
121
}
122
122
123
- protected function setUp ()
123
+ protected function setUp (): void
124
124
{
125
125
$ fqn = get_called_class ();
126
126
$ parts = explode ('\\' , $ fqn );
@@ -144,7 +144,7 @@ protected function setUp()
144
144
$ this ->initProperties ();
145
145
}
146
146
147
- public static function tearDownAfterClass ()
147
+ public static function tearDownAfterClass (): void
148
148
{
149
149
if (isset (self ::$ staticSharedFixture ['session ' ])) {
150
150
self ::$ staticSharedFixture ['session ' ]->logout ();
@@ -278,7 +278,8 @@ protected function assertSimilarDateTime($expected, $data)
278
278
{
279
279
$ this ->assertInstanceOf (DateTime::class, $ expected );
280
280
$ this ->assertInstanceOf (DateTime::class, $ data );
281
- $ this ->assertTrue (abs ($ expected ->getTimestamp () - $ data ->getTimestamp ()) <= 3 ,
281
+ $ this ->assertTrue (
282
+ abs ($ expected ->getTimestamp () - $ data ->getTimestamp ()) <= 3 ,
282
283
$ data ->format ('c ' ).' is not close to the expected ' .$ expected ->format ('c ' )
283
284
);
284
285
}
@@ -290,7 +291,7 @@ protected function assertSimilarDateTime($expected, $data)
290
291
*
291
292
* @return bool True if the test can be done. Otherwise the test is skipped.
292
293
*/
293
- protected function skipIfNotSupported ($ descriptor )
294
+ protected function skipIfNotSupported ($ descriptor ): bool
294
295
{
295
296
if (false === $ this ->session ->getRepository ()->getDescriptor ($ descriptor )) {
296
297
$ this ->markTestSkipped ('Descriptor " ' .$ descriptor .'" not supported ' );
0 commit comments