Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="./vendor/autoload.php"
forceCoversAnnotation="true"
colors="true">
<testsuites>
<testsuite name="zend-mvc Test Suite">
Expand Down
3 changes: 3 additions & 0 deletions test/Application/AllowsReturningEarlyFromRoutingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Zend\Http\PhpEnvironment\Response;
use Zend\Mvc\MvcEvent;

/**
* @coversNothing
*/
class AllowsReturningEarlyFromRoutingTest extends TestCase
{
use PathControllerTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/Application/ControllerIsDispatchedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use PHPUnit\Framework\TestCase;
use Zend\Mvc\MvcEvent;

/**
* @coversNothing
*/
class ControllerIsDispatchedTest extends TestCase
{
use PathControllerTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use PHPUnit\Framework\TestCase;
use Zend\Mvc\MvcEvent;

/**
* @coversNothing
*/
class ExceptionsRaisedInDispatchableShouldRaiseDispatchErrorEventTest extends TestCase
{
use BadControllerTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Zend\Mvc\Application;
use Zend\Mvc\MvcEvent;

/**
* @coversNothing
*/
class InabilityToRetrieveControllerShouldTriggerDispatchErrorTest extends TestCase
{
use MissingControllerTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Zend\Mvc\Application;
use Zend\Mvc\MvcEvent;

/**
* @coversNothing
*/
class InabilityToRetrieveControllerShouldTriggerExceptionTest extends TestCase
{
use MissingControllerTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/Application/InitializationIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use function ob_get_clean;
use function ob_start;

/**
* @coversNothing
*/
class InitializationIntegrationTest extends TestCase
{
public function testDefaultInitializationWorkflow()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Zend\Mvc\Application;
use Zend\Mvc\MvcEvent;

/**
* @coversNothing
*/
class InvalidControllerTypeShouldTriggerDispatchErrorTest extends TestCase
{
use InvalidControllerTypeTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/Application/RoutingSuccessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Zend\Mvc\MvcEvent;
use Zend\Router\RouteMatch;

/**
* @coversNothing
*/
class RoutingSuccessTest extends TestCase
{
use PathControllerTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
use function sprintf;
use function var_export;

/**
* @covers \Zend\Mvc\Application
*/
class ApplicationTest extends TestCase
{
use EventListenerIntrospectionTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/ActionControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
use function method_exists;
use function var_export;

/**
* @covers \Zend\Mvc\Controller\AbstractActionController
*/
class ActionControllerTest extends TestCase
{
public $controller;
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/ControllerManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
use Zend\ServiceManager\ServiceManager;
use ZendTest\Mvc\Controller\TestAsset\SampleController;

/**
* @covers \Zend\Mvc\Controller\ControllerManager
*/
class ControllerManagerTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use Zend\ServiceManager\Config;
use Zend\ServiceManager\ServiceManager;

/**
* @coversNothing
*/
class IntegrationTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/LazyControllerAbstractFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

use function sprintf;

/**
* @covers \Zend\Mvc\Controller\LazyControllerAbstractFactory
*/
class LazyControllerAbstractFactoryTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/Plugin/AcceptableViewModelSelectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Zend\View\Model;
use ZendTest\Mvc\Controller\TestAsset\SampleController;

/**
* @covers \Zend\Mvc\Controller\Plugin\AcceptableViewModelSelector
*/
class AcceptableViewModelSelectorTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/Plugin/ForwardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
use ZendTest\Mvc\Controller\TestAsset\SampleController;
use ZendTest\Mvc\Controller\TestAsset\UneventfulController;

/**
* @covers \Zend\Mvc\Controller\Plugin\Forward
*/
class ForwardTest extends TestCase
{
/** @var ControllerManager */
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/Plugin/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Zend\View\Model\ViewModel;
use ZendTest\Mvc\Controller\TestAsset\SampleController;

/**
* @covers \Zend\Mvc\Controller\Plugin\Layout
*/
class LayoutTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/Plugin/ParamsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

use const UPLOAD_ERR_OK;

/**
* @covers \Zend\Mvc\Controller\Plugin\Params
*/
class ParamsTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/Plugin/RedirectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
use Zend\Router\SimpleRouteStack;
use ZendTest\Mvc\Controller\TestAsset\SampleController;

/**
* @covers \Zend\Mvc\Controller\Plugin\Redirect
*/
class RedirectTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/Plugin/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
use Zend\Router\SimpleRouteStack;
use ZendTest\Mvc\Controller\TestAsset\SampleController;

/**
* @covers \Zend\Mvc\Controller\Plugin\Url
*/
class UrlTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/PluginManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use ZendTest\Mvc\Controller\Plugin\TestAsset\SamplePlugin;
use ZendTest\Mvc\Controller\TestAsset\SampleController;

/**
* @covers \Zend\Mvc\Controller\PluginManager
*/
class PluginManagerTest extends TestCase
{
public function testPluginManagerInjectsControllerInPlugin()
Expand Down
3 changes: 3 additions & 0 deletions test/Controller/RestfulControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
use function sort;
use function uniqid;

/**
* @covers \Zend\Mvc\Controller\AbstractRestfulController
*/
class RestfulControllerTest extends TestCase
{
public $controller;
Expand Down
3 changes: 3 additions & 0 deletions test/DispatchListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

use function var_export;

/**
* @covers \Zend\Mvc\DispatchListener
*/
class DispatchListenerTest extends TestCase
{
public function createMvcEvent($controllerMatched)
Expand Down
3 changes: 3 additions & 0 deletions test/Exception/InvalidMiddlewareExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

use function uniqid;

/**
* @covers \Zend\Mvc\Exception\InvalidMiddlewareException
*/
final class InvalidMiddlewareExceptionTest extends TestCase
{
public function testFromMiddlewareName()
Expand Down
3 changes: 3 additions & 0 deletions test/Exception/ReachedFinalHandlerExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use PHPUnit\Framework\TestCase;
use Zend\Mvc\Exception\ReachedFinalHandlerException;

/**
* @covers \Zend\Mvc\Exception\ReachedFinalHandlerException
*/
final class ReachedFinalHandlerExceptionTest extends TestCase
{
public function testFromNothing()
Expand Down
3 changes: 3 additions & 0 deletions test/MiddlewareListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
use function uniqid;
use function var_export;

/**
* @covers \Zend\Mvc\MiddlewareListener
*/
class MiddlewareListenerTest extends TestCase
{
/** @var ObjectProphecy */
Expand Down
3 changes: 3 additions & 0 deletions test/ModuleRouteListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Zend\Router;
use Zend\Router\RouteMatch;

/**
* @covers \Zend\Mvc\ModuleRouteListener
*/
class ModuleRouteListenerTest extends TestCase
{
public function setUp() : void
Expand Down
3 changes: 3 additions & 0 deletions test/ResponseSender/AbstractResponseSenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
use function version_compare;
use function xdebug_get_headers;

/**
* @covers \Zend\Mvc\ResponseSender\AbstractResponseSender
*/
class AbstractResponseSenderTest extends TestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions test/ResponseSender/PhpEnvironmentResponseSenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use function ob_get_clean;
use function ob_start;

/**
* @covers \Zend\Mvc\ResponseSender\PhpEnvironmentResponseSender
*/
class PhpEnvironmentResponseSenderTest extends TestCase
{
public function testSendResponseIgnoresInvalidResponseTypes()
Expand Down
3 changes: 3 additions & 0 deletions test/ResponseSender/SendResponseEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Zend\Mvc\ResponseSender\SendResponseEvent;
use Zend\Stdlib\ResponseInterface;

/**
* @covers \Zend\Mvc\ResponseSender\SendResponseEvent
*/
class SendResponseEventTest extends TestCase
{
public function testContentSentAndHeadersSent()
Expand Down
3 changes: 3 additions & 0 deletions test/ResponseSender/SimpleStreamResponseSenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use function ob_get_clean;
use function ob_start;

/**
* @covers \Zend\Mvc\ResponseSender\SimpleStreamResponseSender
*/
class SimpleStreamResponseSenderTest extends TestCase
{
public function testSendResponseIgnoresInvalidResponseTypes()
Expand Down
3 changes: 3 additions & 0 deletions test/SendResponseListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

use function array_values;

/**
* @covers \Zend\Mvc\SendResponseListener
*/
class SendResponseListenerTest extends TestCase
{
public function testEventManagerIdentifiers()
Expand Down
3 changes: 3 additions & 0 deletions test/View/CreateViewModelListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use function count;
use function gettype;

/**
* @covers \Zend\Mvc\View\Http\CreateViewModelListener
*/
class CreateViewModelListenerTest extends TestCase
{
use EventListenerIntrospectionTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/View/DefaultRendereringStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
use function json_encode;
use function sprintf;

/**
* @covers \Zend\Mvc\View\Http\DefaultRenderingStrategy
*/
class DefaultRendereringStrategyTest extends TestCase
{
use EventListenerIntrospectionTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/View/ExceptionStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

use function count;

/**
* @covers \Zend\Mvc\View\Http\ExceptionStrategy
*/
class ExceptionStrategyTest extends TestCase
{
use EventListenerIntrospectionTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/View/InjectTemplateListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

use function count;

/**
* @covers \Zend\Mvc\View\Http\InjectTemplateListener
*/
class InjectTemplateListenerTest extends TestCase
{
use EventListenerIntrospectionTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/View/InjectViewModelListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

use function count;

/**
* @covers \Zend\Mvc\View\Http\InjectViewModelListener
*/
class InjectViewModelListenerTest extends TestCase
{
use EventListenerIntrospectionTrait;
Expand Down
3 changes: 3 additions & 0 deletions test/View/RouteNotFoundStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Zend\View\Model\ModelInterface;
use Zend\View\Model\ViewModel;

/**
* @covers \Zend\Mvc\View\Http\RouteNotFoundStrategy
*/
class RouteNotFoundStrategyTest extends TestCase
{
use EventListenerIntrospectionTrait;
Expand Down