diff --git a/test/Factory/HttpMethodOverrideListenerFactoryTest.php b/test/Factory/HttpMethodOverrideListenerFactoryTest.php index 118f61a..5bf9517 100644 --- a/test/Factory/HttpMethodOverrideListenerFactoryTest.php +++ b/test/Factory/HttpMethodOverrideListenerFactoryTest.php @@ -7,6 +7,7 @@ namespace ZFTest\ContentNegotiation\Factory; use PHPUnit_Framework_TestCase as TestCase; +use Prophecy\Prophecy\ObjectProphecy; use Zend\ServiceManager\ServiceLocatorInterface; use Zend\ServiceManager\ServiceManager; use ZF\ContentNegotiation\ContentNegotiationOptions; @@ -17,9 +18,11 @@ class HttpMethodOverrideListenerFactoryTest extends TestCase { public function testCreateServiceShouldReturnContentTypeFilterListenerInstance() { + /** @var ContentNegotiationOptions|ObjectProphecy $options */ $options = $this->prophesize(ContentNegotiationOptions::class); $options->getHttpOverrideMethods()->willReturn([]); + /** @var ServiceManager|ObjectProphecy $container */ $container = $this->prophesize(ServiceManager::class); $container->willImplement(ServiceLocatorInterface::class); $container->get(ContentNegotiationOptions::class)->willReturn($options); diff --git a/test/HttpMethodOverrideListenerTest.php b/test/HttpMethodOverrideListenerTest.php index a2d039b..653385a 100644 --- a/test/HttpMethodOverrideListenerTest.php +++ b/test/HttpMethodOverrideListenerTest.php @@ -30,10 +30,10 @@ class HttpMethodOverrideListenerTest extends TestCase HttpRequest::METHOD_POST, HttpRequest::METHOD_PUT, HttpRequest::METHOD_DELETE, - HttpRequest::METHOD_PATCH + HttpRequest::METHOD_PATCH, ], HttpRequest::METHOD_POST => [ - ] + ], ]; /**