Skip to content

Commit 133b816

Browse files
committed
tweak test
1 parent 5a38b2c commit 133b816

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/EventListener/MimeTypeListenerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ class MimeTypeListenerTest extends \PHPUnit_Framework_TestCase
2525
public function testOnKernelRequest()
2626
{
2727
$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));
2832

2933
$listener = new MimeTypeListener(array('jsonp' => array('application/javascript')), $formatNegotiator);
3034

0 commit comments

Comments
 (0)