@@ -23,7 +23,7 @@ class TestCase
2323 /** @var bool */
2424 private $ handleErrors = false ;
2525
26- /** @var callable|null| false */
26+ /** @var callable|false|null */
2727 private $ prevErrorHandler = false ;
2828
2929
@@ -89,7 +89,9 @@ public function runTest(string $method, array $args = null): void
8989 if ($ args === null ) {
9090 $ defaultParams = [];
9191 foreach ($ method ->getParameters () as $ param ) {
92- $ defaultParams [$ param ->getName ()] = $ param ->isDefaultValueAvailable () ? $ param ->getDefaultValue () : null ;
92+ $ defaultParams [$ param ->getName ()] = $ param ->isDefaultValueAvailable ()
93+ ? $ param ->getDefaultValue ()
94+ : null ;
9395 }
9496
9597 foreach ((array ) $ info ['dataprovider ' ] as $ i => $ provider ) {
@@ -99,7 +101,9 @@ public function runTest(string $method, array $args = null): void
99101 }
100102
101103 foreach ($ res as $ k => $ set ) {
102- $ data ["$ i- $ k " ] = is_string (key ($ set )) ? array_merge ($ defaultParams , $ set ) : $ set ;
104+ $ data ["$ i- $ k " ] = is_string (key ($ set ))
105+ ? array_merge ($ defaultParams , $ set )
106+ : $ set ;
103107 }
104108 }
105109
@@ -121,7 +125,9 @@ public function runTest(string $method, array $args = null): void
121125 $ this ->silentTearDown ();
122126 }
123127
124- return $ this ->prevErrorHandler ? ($ this ->prevErrorHandler )(...func_get_args ()) : false ;
128+ return $ this ->prevErrorHandler
129+ ? ($ this ->prevErrorHandler )(...func_get_args ())
130+ : false ;
125131 });
126132 }
127133
@@ -153,7 +159,8 @@ public function runTest(string $method, array $args = null): void
153159 $ this ->tearDown ();
154160
155161 } catch (AssertException $ e ) {
156- throw $ e ->setMessage (sprintf ('%s in %s(%s)%s ' ,
162+ throw $ e ->setMessage (sprintf (
163+ '%s in %s(%s)%s ' ,
157164 $ e ->origMessage ,
158165 $ method ->getName (),
159166 substr (Dumper::toLine ($ params ), 1 , -1 ),
0 commit comments