createOpenApiWithInfo(); $info = $openapi->ref('#/info'); $this->assertInstanceOf(Info::class, $info); $comment = <<merge($this->parseComment($comment)); $analysis = new Analysis([], new Context()); $analysis->addAnnotation($openapi, Context::detect()); $analysis->process(); $analysis->validate(); // escape / as ~1 // escape ~ as ~0 $response = $openapi->ref('#/paths/~1api~1~0~1endpoint/get/responses/default'); $this->assertInstanceOf(Response::class, $response); $this->assertSame('A response', $response->description); } }