We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a38b2c commit 133b816Copy full SHA for 133b816
Tests/EventListener/MimeTypeListenerTest.php
@@ -25,6 +25,10 @@ class MimeTypeListenerTest extends \PHPUnit_Framework_TestCase
25
public function testOnKernelRequest()
26
{
27
$formatNegotiator = $this->getMockBuilder('FOS\RestBundle\Util\FormatNegotiator')->disableOriginalConstructor()->getMock();
28
+ $formatNegotiator->expects($this->any())
29
+ ->method('registerFormat')
30
+ ->with('jsonp', array('application/javascript'), true)
31
+ ->will($this->returnValue(null));
32
33
$listener = new MimeTypeListener(array('jsonp' => array('application/javascript')), $formatNegotiator);
34
0 commit comments