File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 11<?php
22
3-
3+ declare (strict_types=1 );
4+ /**
5+ * This file is part of Hyperf.
6+ *
7+ * @link https://www.hyperf.io
8+ * @document https://doc.hyperf.io
9+ 10+ * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
11+ */
412namespace HyperfTest \Di ;
513
6-
714use Hyperf \Di \ClosureDefinitionCollector ;
815use Hyperf \Di \ReflectionType ;
916use HyperfTest \Di \Stub \Foo ;
1017use PHPUnit \Framework \TestCase ;
1118
19+ /**
20+ * @internal
21+ * @coversNothing
22+ */
1223class ClosureDefinitionTest extends TestCase
1324{
14- public function testGetParameters (){
25+ public function testGetParameters ()
26+ {
1527 $ collector = new ClosureDefinitionCollector ();
1628 $ closure = \Closure::fromCallable ([new Foo (), 'getBar ' ]);
1729 $ definitions = $ collector ->getParameters ($ closure );
@@ -21,7 +33,8 @@ public function testGetParameters(){
2133 $ this ->assertTrue ($ definitions [1 ]->getMeta ('defaultValueAvailable ' ));
2234 }
2335
24- public function testGetReturnTypes (){
36+ public function testGetReturnTypes ()
37+ {
2538 $ collector = new ClosureDefinitionCollector ();
2639 $ closure = \Closure::fromCallable ([new Foo (), 'getBar ' ]);
2740 $ type = $ collector ->getReturnType ($ closure );
You can’t perform that action at this time.
0 commit comments