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

Commit 5a0aca1

Browse files
committed
Exclude deprecation notices from more tests
After duck-typing the `ServiceLocatorAwareInterface` usage, two more tests showed failures due to deprecation notices; these have now been marked to exclude them.
1 parent 5cb953e commit 5a0aca1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/Application/AllowsReturningEarlyFromRoutingTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace ZendTest\Mvc\Application;
1111

12+
use PHPUnit_Framework_Error_Deprecated;
1213
use PHPUnit_Framework_TestCase as TestCase;
1314
use Zend\Http\PhpEnvironment\Response;
1415
use Zend\Mvc\MvcEvent;
@@ -17,6 +18,12 @@ class AllowsReturningEarlyFromRoutingTest extends TestCase
1718
{
1819
use PathControllerTrait;
1920

21+
public function setUp()
22+
{
23+
// Ignore deprecation errors
24+
PHPUnit_Framework_Error_Deprecated::$enabled = false;
25+
}
26+
2027
public function testAllowsReturningEarlyFromRouting()
2128
{
2229
$application = $this->prepareApplication();

test/Application/ControllerIsDispatchedTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@
99

1010
namespace ZendTest\Mvc\Application;
1111

12+
use PHPUnit_Framework_Error_Deprecated;
1213
use PHPUnit_Framework_TestCase as TestCase;
1314
use Zend\Mvc\MvcEvent;
1415

1516
class ControllerIsDispatchedTest extends TestCase
1617
{
1718
use PathControllerTrait;
1819

20+
public function setUp()
21+
{
22+
// Ignore deprecation errors
23+
PHPUnit_Framework_Error_Deprecated::$enabled = false;
24+
}
25+
1926
public function testControllerIsDispatchedDuringRun()
2027
{
2128
$application = $this->prepareApplication();

0 commit comments

Comments
 (0)