@@ -7,38 +7,36 @@ class FunctionCheckTypehintTest extends TestCase
77 /** @test */
88 public function shouldAcceptClosureCallbackWithTypehint ()
99 {
10- $ this ->assertTrue (_checkTypehint (function (\InvalidArgumentException $ e ) {
11- }, new \InvalidArgumentException ()));
12- $ this ->assertfalse (_checkTypehint (function (\InvalidArgumentException $ e ) {
13- }, new \Exception ()));
10+ $ this ->assertTrue (_checkTypehint (function (\InvalidArgumentException $ e ) {}, new \InvalidArgumentException ()));
11+ $ this ->assertFalse (_checkTypehint (function (\InvalidArgumentException $ e ) {}, new \Exception ()));
1412 }
1513
1614 /** @test */
1715 public function shouldAcceptFunctionStringCallbackWithTypehint ()
1816 {
1917 $ this ->assertTrue (_checkTypehint ('React\Promise\testCallbackWithTypehint ' , new \InvalidArgumentException ()));
20- $ this ->assertfalse (_checkTypehint ('React\Promise\testCallbackWithTypehint ' , new \Exception ()));
18+ $ this ->assertFalse (_checkTypehint ('React\Promise\testCallbackWithTypehint ' , new \Exception ()));
2119 }
2220
2321 /** @test */
2422 public function shouldAcceptInvokableObjectCallbackWithTypehint ()
2523 {
2624 $ this ->assertTrue (_checkTypehint (new TestCallbackWithTypehintClass (), new \InvalidArgumentException ()));
27- $ this ->assertfalse (_checkTypehint (new TestCallbackWithTypehintClass (), new \Exception ()));
25+ $ this ->assertFalse (_checkTypehint (new TestCallbackWithTypehintClass (), new \Exception ()));
2826 }
2927
3028 /** @test */
3129 public function shouldAcceptObjectMethodCallbackWithTypehint ()
3230 {
3331 $ this ->assertTrue (_checkTypehint ([new TestCallbackWithTypehintClass (), 'testCallback ' ], new \InvalidArgumentException ()));
34- $ this ->assertfalse (_checkTypehint ([new TestCallbackWithTypehintClass (), 'testCallback ' ], new \Exception ()));
32+ $ this ->assertFalse (_checkTypehint ([new TestCallbackWithTypehintClass (), 'testCallback ' ], new \Exception ()));
3533 }
3634
3735 /** @test */
3836 public function shouldAcceptStaticClassCallbackWithTypehint ()
3937 {
4038 $ this ->assertTrue (_checkTypehint (['React\Promise\TestCallbackWithTypehintClass ' , 'testCallbackStatic ' ], new \InvalidArgumentException ()));
41- $ this ->assertfalse (_checkTypehint (['React\Promise\TestCallbackWithTypehintClass ' , 'testCallbackStatic ' ], new \Exception ()));
39+ $ this ->assertFalse (_checkTypehint (['React\Promise\TestCallbackWithTypehintClass ' , 'testCallbackStatic ' ], new \Exception ()));
4240 }
4341
4442 /** @test */
@@ -85,34 +83,28 @@ class TestCallbackWithTypehintClass
8583{
8684 public function __invoke (\InvalidArgumentException $ e )
8785 {
88-
8986 }
9087
9188 public function testCallback (\InvalidArgumentException $ e )
9289 {
93-
9490 }
9591
9692 public static function testCallbackStatic (\InvalidArgumentException $ e )
9793 {
98-
9994 }
10095}
10196
10297class TestCallbackWithoutTypehintClass
10398{
10499 public function __invoke ()
105100 {
106-
107101 }
108102
109103 public function testCallback ()
110104 {
111-
112105 }
113106
114107 public static function testCallbackStatic ()
115108 {
116-
117109 }
118110}
0 commit comments