public function testDoesNotResolveOtherClassMethods() { $classMethod = new ClassMethod('someMethod'); $classNode = new Class_('SomeClass'); $classNode->stmts = array($classMethod); $table = $this->prophesize('SensioLabs\\DeprecationDetector\\TypeGuessing\\SymbolTable\\SymbolTable'); $table->enterScope(new TableScope(TableScope::CLASS_METHOD_SCOPE))->shouldNotBeCalled(); $table->leaveScope()->shouldNotBeCalled(); $visitor = $this->prophesize('SensioLabs\\DeprecationDetector\\Visitor\\VisitorInterface'); $visitor->beforeTraverse(Argument::any())->shouldNotBeCalled(); $visitor->enterNode(Argument::any())->shouldNotBeCalled(); $visitor->afterTraverse(Argument::any())->shouldNotBeCalled(); $visitor->leaveNode(Argument::any())->shouldNotBeCalled(); $resolver = new ConstructorResolver($table->reveal()); $resolver->addVisitor($visitor->reveal()); $this->assertSame($classNode, $resolver->resolveConstructor($classNode)); }