public function setUp() { $this->analyser = $this->prophesize(Analyser::class); $this->detector = $this->prophesize(Detector::class); $this->node = $this->prophesize(Node::class); $this->nodeVisitor = new NodeVisitor($this->analyser->reveal(), $this->detector->reveal()); }