Skip to content

Commit

Permalink
DispatcherFactory is also deprecated.
Browse files Browse the repository at this point in the history
Mark its tests accordingly.
  • Loading branch information
markstory committed Nov 16, 2017
1 parent 8d6e88c commit b66053d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Routing/DispatcherFactory.php
Expand Up @@ -20,6 +20,9 @@
/**
* A factory for creating dispatchers with all the desired middleware
* connected.
*
* @deprecated 3.6.0 This class is part of the deprecated dispatcher system.
* Use Http\Server instead.
*/
class DispatcherFactory
{
Expand Down
13 changes: 13 additions & 0 deletions tests/TestCase/Routing/DispatcherFactoryTest.php
Expand Up @@ -23,6 +23,7 @@
*/
class DispatcherFactoryTest extends TestCase
{
protected $errorLevel;

/**
* setup function
Expand All @@ -34,6 +35,18 @@ public function setUp()
parent::setUp();
static::setAppNamespace();
DispatcherFactory::clear();
$this->errorLevel = error_reporting(E_ALL ^ E_USER_DEPRECATED);
}

/**
* teardown function
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
error_reporting($this->errorLevel);
}

/**
Expand Down

0 comments on commit b66053d

Please sign in to comment.