parseComment($comment)); $this->assertCount(3, $analysis->annotations); $response = $analysis->getAnnotationsOfType(Response::class)[0]; $this->assertSame(UNDEFINED, $response->content); $this->assertCount(1, $response->_unmerged); $analysis->process(new MergeJsonContent()); $this->assertCount(1, $response->content); $this->assertCount(0, $response->_unmerged); $json = json_decode(json_encode($response), true); $this->assertSame('#/components/schemas/repository', $json['content']['application/json']['schema']['items']['$ref']); } public function testMultipleMediaTypes() { $comment = <<parseComment($comment)); $response = $analysis->getAnnotationsOfType(Response::class)[0]; $this->assertCount(1, $response->content); $analysis->process(new MergeJsonContent()); $this->assertCount(2, $response->content); } }