@@ -19,11 +19,11 @@ public function testCreateJsonResponse()
1919 $ formatter = new JsonFormatter ();
2020 $ feed = $ this ->getFeed ();
2121
22- $ response = $ responseBuilder ->createResponse ('json ' , $ formatter , $ feed );
22+ $ response = $ responseBuilder ->createResponse ('application/feed+ json ' , $ formatter , $ feed );
2323
2424 $ headers = $ response ->getHeaders ();
2525 $ this ->assertEquals (['Content-Type ' , 'Cache-Control ' , 'Last-Modified ' ], array_keys ($ headers ));
26- $ this ->assertEquals ('application/json ' , $ headers ['Content-Type ' ][0 ]);
26+ $ this ->assertEquals ('application/feed+ json ' , $ headers ['Content-Type ' ][0 ]);
2727
2828 $ body = $ response ->getBody ()->getContents ();
2929 $ this ->assertJson ($ body );
@@ -37,11 +37,11 @@ public function testCreateAtomResponse()
3737 $ formatter = new XmlFormatter (new Atom ($ dateTimeBuilder ));
3838 $ feed = $ this ->getFeed ();
3939
40- $ response = $ responseBuilder ->createResponse ('atom ' , $ formatter , $ feed );
40+ $ response = $ responseBuilder ->createResponse ('application/ atom+xml ' , $ formatter , $ feed );
4141
4242 $ headers = $ response ->getHeaders ();
4343 $ this ->assertEquals (['Content-Type ' , 'Cache-Control ' , 'Last-Modified ' ], array_keys ($ headers ));
44- $ this ->assertEquals ('application/xhtml +xml ' , $ headers ['Content-Type ' ][0 ]);
44+ $ this ->assertEquals ('application/atom +xml ' , $ headers ['Content-Type ' ][0 ]);
4545
4646 $ body = $ response ->getBody ()->getContents ();
4747 $ document = new \DOMDocument ();
@@ -62,13 +62,13 @@ public function testResponseOnEmptyFeed()
6262 $ feed ->setUrl ('http://localhost ' );
6363 $ feed ->setTitle ('test feed ' );
6464
65- $ response = $ responseBuilder ->createResponse ('atom ' , $ formatter , $ feed );
65+ $ response = $ responseBuilder ->createResponse ('application/ atom+xml ' , $ formatter , $ feed );
6666
6767 $ headers = $ response ->getHeaders ();
6868 $ headerNames = array_keys ($ headers );
6969 $ this ->assertEquals (['Content-Type ' , 'Cache-Control ' ], $ headerNames );
7070 $ this ->assertArrayNotHasKey ('Last-Modified ' , $ headerNames );
71- $ this ->assertEquals ('application/xhtml +xml ' , $ headers ['Content-Type ' ][0 ]);
71+ $ this ->assertEquals ('application/atom +xml ' , $ headers ['Content-Type ' ][0 ]);
7272
7373 $ body = $ response ->getBody ()->getContents ();
7474 $ document = new \DOMDocument ();
0 commit comments