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

Commit 3a05102

Browse files
authored
Merge pull request #304 from Xerkus/feature/force-coverage
Force coverage annotations
2 parents 45775c1 + 8029bf7 commit 3a05102

38 files changed

+112
-0
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="./vendor/autoload.php"
5+
forceCoversAnnotation="true"
56
colors="true">
67
<testsuites>
78
<testsuite name="zend-mvc Test Suite">

test/Application/AllowsReturningEarlyFromRoutingTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Zend\Http\PhpEnvironment\Response;
1414
use Zend\Mvc\MvcEvent;
1515

16+
/**
17+
* @coversNothing
18+
*/
1619
class AllowsReturningEarlyFromRoutingTest extends TestCase
1720
{
1821
use PathControllerTrait;

test/Application/ControllerIsDispatchedTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use PHPUnit\Framework\TestCase;
1313
use Zend\Mvc\MvcEvent;
1414

15+
/**
16+
* @coversNothing
17+
*/
1518
class ControllerIsDispatchedTest extends TestCase
1619
{
1720
use PathControllerTrait;

test/Application/ExceptionsRaisedInDispatchableShouldRaiseDispatchErrorEventTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use PHPUnit\Framework\TestCase;
1313
use Zend\Mvc\MvcEvent;
1414

15+
/**
16+
* @coversNothing
17+
*/
1518
class ExceptionsRaisedInDispatchableShouldRaiseDispatchErrorEventTest extends TestCase
1619
{
1720
use BadControllerTrait;

test/Application/InabilityToRetrieveControllerShouldTriggerDispatchErrorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Zend\Mvc\Application;
1414
use Zend\Mvc\MvcEvent;
1515

16+
/**
17+
* @coversNothing
18+
*/
1619
class InabilityToRetrieveControllerShouldTriggerDispatchErrorTest extends TestCase
1720
{
1821
use MissingControllerTrait;

test/Application/InabilityToRetrieveControllerShouldTriggerExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Zend\Mvc\Application;
1414
use Zend\Mvc\MvcEvent;
1515

16+
/**
17+
* @coversNothing
18+
*/
1619
class InabilityToRetrieveControllerShouldTriggerExceptionTest extends TestCase
1720
{
1821
use MissingControllerTrait;

test/Application/InitializationIntegrationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
use function ob_get_clean;
1717
use function ob_start;
1818

19+
/**
20+
* @coversNothing
21+
*/
1922
class InitializationIntegrationTest extends TestCase
2023
{
2124
public function testDefaultInitializationWorkflow()

test/Application/InvalidControllerTypeShouldTriggerDispatchErrorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Zend\Mvc\Application;
1414
use Zend\Mvc\MvcEvent;
1515

16+
/**
17+
* @coversNothing
18+
*/
1619
class InvalidControllerTypeShouldTriggerDispatchErrorTest extends TestCase
1720
{
1821
use InvalidControllerTypeTrait;

test/Application/RoutingSuccessTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Zend\Mvc\MvcEvent;
1414
use Zend\Router\RouteMatch;
1515

16+
/**
17+
* @coversNothing
18+
*/
1619
class RoutingSuccessTest extends TestCase
1720
{
1821
use PathControllerTrait;

test/ApplicationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
use function sprintf;
4040
use function var_export;
4141

42+
/**
43+
* @covers \Zend\Mvc\Application
44+
*/
4245
class ApplicationTest extends TestCase
4346
{
4447
use EventListenerIntrospectionTrait;

0 commit comments

Comments
 (0)