Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
added trailing commas
Browse files Browse the repository at this point in the history
added php doc
  • Loading branch information
Wilt committed Aug 24, 2016
1 parent 8bac35c commit dabc4e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test/Factory/HttpMethodOverrideListenerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions test/HttpMethodOverrideListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 => [
]
],
];

/**
Expand Down

0 comments on commit dabc4e0

Please sign in to comment.