File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
tests/UnitTest/PhpDocReader Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 33namespace UnitTest \PhpDocReader ;
44
55use PhpDocReader \PhpDocReader ;
6+ use ReflectionParameter ;
67
78/**
89 * @see https://github.com/mnapoli/PhpDocReader/issues/1
@@ -26,15 +27,9 @@ public function testProperties($type)
2627 public function testMethodParameters ($ type )
2728 {
2829 $ parser = new PhpDocReader ();
30+ $ parameter = new ReflectionParameter (array ('UnitTest\PhpDocReader\FixturesIssue1\Class1 ' , 'foo ' ), $ type );
2931
30- $ class = new \ReflectionClass ('UnitTest\PhpDocReader\FixturesIssue1\Class1 ' );
31- $ params = $ class ->getMethod ('foo ' )->getParameters ();
32- $ keys = array_map (function (\ReflectionParameter $ param ) {
33- return $ param ->getName ();
34- }, $ params );
35- $ params = array_combine ($ keys , $ params );
36-
37- $ this ->assertNull ($ parser ->getParameterClass ($ params [$ type ]));
32+ $ this ->assertNull ($ parser ->getParameterClass ($ parameter ));
3833 }
3934
4035 public function typeProvider ()
You can’t perform that action at this time.
0 commit comments