private function getAstReference($className) { $astClass = $this->prophesize(AstClassReference::class); $astClass->getClassName()->willReturn($className); return $astClass->reveal(); }