forked from zendframework/zend-mvc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes zendframework#24 : Fixes Fatal error in Catchall::factory
- Loading branch information
1 parent
05e8db5
commit 178ee48
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace ZendTest\Mvc\Router\Console; | ||
|
||
use PHPUnit_Framework_TestCase as TestCase; | ||
use Zend\Console\Request as ConsoleRequest; | ||
use Zend\Mvc\Router\Console\Catchall; | ||
|
||
class CatchallTest extends TestCase | ||
{ | ||
public function provideFactoryOptions() | ||
{ | ||
return [ | ||
[[]], | ||
[['defaults' => []]] | ||
]; | ||
} | ||
|
||
/** | ||
* @dataProvider provideFactoryOptions | ||
*/ | ||
public function testFactory($options) | ||
{ | ||
$this->assertInstanceOf(Catchall::class, Catchall::factory($options)); | ||
} | ||
} |