We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e437a71 commit f418791Copy full SHA for f418791
test/gracefulTests.js
@@ -88,6 +88,16 @@ describe('Test graceful mode', function() {
88
// the supressError mode cant guarantee $foo to be included into the arguments list
89
});
90
91
+ it('test method chains', function () {
92
+ // test.parser.debug = true;
93
+ var ast = test.parseEval([
94
+ '$controller->expects($this->once())',
95
+ '->'
96
+ ].join('\n'));
97
+ ast.children[0].kind.should.be.exactly('propertylookup');
98
+ ast.children[0].what.kind.should.be.exactly('call');
99
+ ast.children[0].what.what.kind.should.be.exactly('propertylookup');
100
+ });
101
102
103
0 commit comments