@@ -96,7 +96,7 @@ abstract class BaseCase extends TestCase
9696 *
9797 * @see initProperties()
9898 */
99- public static function setupBeforeClass ($ fixtures = 'general/base ' )
99+ public static function setupBeforeClass ($ fixtures = 'general/base ' ): void
100100 {
101101 self ::$ loader = ImplementationLoader::getInstance ();
102102
@@ -120,7 +120,7 @@ public static function setupBeforeClass($fixtures = 'general/base')
120120 self ::$ staticSharedFixture ['additionalSession ' ] = self ::$ loader ->getAdditionalSession ();
121121 }
122122
123- protected function setUp ()
123+ protected function setUp (): void
124124 {
125125 $ fqn = get_called_class ();
126126 $ parts = explode ('\\' , $ fqn );
@@ -144,7 +144,7 @@ protected function setUp()
144144 $ this ->initProperties ();
145145 }
146146
147- public static function tearDownAfterClass ()
147+ public static function tearDownAfterClass (): void
148148 {
149149 if (isset (self ::$ staticSharedFixture ['session ' ])) {
150150 self ::$ staticSharedFixture ['session ' ]->logout ();
@@ -278,7 +278,8 @@ protected function assertSimilarDateTime($expected, $data)
278278 {
279279 $ this ->assertInstanceOf (DateTime::class, $ expected );
280280 $ this ->assertInstanceOf (DateTime::class, $ data );
281- $ this ->assertTrue (abs ($ expected ->getTimestamp () - $ data ->getTimestamp ()) <= 3 ,
281+ $ this ->assertTrue (
282+ abs ($ expected ->getTimestamp () - $ data ->getTimestamp ()) <= 3 ,
282283 $ data ->format ('c ' ).' is not close to the expected ' .$ expected ->format ('c ' )
283284 );
284285 }
@@ -290,7 +291,7 @@ protected function assertSimilarDateTime($expected, $data)
290291 *
291292 * @return bool True if the test can be done. Otherwise the test is skipped.
292293 */
293- protected function skipIfNotSupported ($ descriptor )
294+ protected function skipIfNotSupported ($ descriptor ): bool
294295 {
295296 if (false === $ this ->session ->getRepository ()->getDescriptor ($ descriptor )) {
296297 $ this ->markTestSkipped ('Descriptor " ' .$ descriptor .'" not supported ' );
0 commit comments