Skip to content

Commit daed055

Browse files
committed
fix json rpc tests
1 parent 27e098c commit daed055

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

tests/ClosureDefinitionTest.php

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
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+
* @contact [email protected]
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
11+
*/
412
namespace HyperfTest\Di;
513

6-
714
use Hyperf\Di\ClosureDefinitionCollector;
815
use Hyperf\Di\ReflectionType;
916
use HyperfTest\Di\Stub\Foo;
1017
use PHPUnit\Framework\TestCase;
1118

19+
/**
20+
* @internal
21+
* @coversNothing
22+
*/
1223
class 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);

0 commit comments

Comments
 (0)