@@ -50,7 +50,7 @@ function createClass($classFQN, $fqcn){
5050 it ('returns variable type from scope ' , function (){
5151 $ node = new NodeVar ;
5252 $ node ->name = $ this ->var ->getName ();
53- expect ($ this ->resolver ->getChainType ($ node , $ this ->index , $ this ->scope ))
53+ expect ($ this ->resolver ->getLastChainNodeType ($ node , $ this ->index , $ this ->scope ))
5454 ->to ->equal ($ this ->var ->getType ());
5555 });
5656 describe ('Properties ' , function (){
@@ -61,12 +61,12 @@ function createClass($classFQN, $fqcn){
6161 });
6262 it ('returns null for unknown property ' , function (){
6363 $ this ->node ->name = 'param ' ;
64- expect ($ this ->resolver ->getChainType ($ this ->node , $ this ->index , $ this ->scope ))
64+ expect ($ this ->resolver ->getLastChainNodeType ($ this ->node , $ this ->index , $ this ->scope ))
6565 ->to ->be ->null ;
6666 });
6767 it ('returns type for known property ' , function (){
6868 $ this ->node ->name = 'param2 ' ;
69- expect ($ this ->resolver ->getChainType ($ this ->node , $ this ->index , $ this ->scope ))
69+ expect ($ this ->resolver ->getLastChainNodeType ($ this ->node , $ this ->index , $ this ->scope ))
7070 ->to ->equal ($ this ->anotherFQCN );
7171 });
7272 });
@@ -78,12 +78,12 @@ function createClass($classFQN, $fqcn){
7878 });
7979 it ('returns null for unknown method ' , function (){
8080 $ this ->node ->name = 'method ' ;
81- expect ($ this ->resolver ->getChainType ($ this ->node , $ this ->index , $ this ->scope ))
81+ expect ($ this ->resolver ->getLastChainNodeType ($ this ->node , $ this ->index , $ this ->scope ))
8282 ->to ->be ->null ;
8383 });
8484 it ('returns type for known method ' , function (){
8585 $ this ->node ->name = 'method2 ' ;
86- expect ($ this ->resolver ->getChainType ($ this ->node , $ this ->index , $ this ->scope ))
86+ expect ($ this ->resolver ->getLastChainNodeType ($ this ->node , $ this ->index , $ this ->scope ))
8787 ->to ->equal ($ this ->anotherFQCN );
8888 });
8989 });
@@ -102,7 +102,7 @@ function createClass($classFQN, $fqcn){
102102 $ node = new PropertyFetch ;
103103 $ node ->var = $ this ->node ;
104104 $ node ->name = 'param2 ' ;
105- expect ($ this ->resolver ->getChainType ($ node , $ this ->index , $ this ->scope ))
105+ expect ($ this ->resolver ->getLastChainNodeType ($ node , $ this ->index , $ this ->scope ))
106106 ->to ->equal ($ this ->var ->getType ());
107107 });
108108 });
0 commit comments