| 1 | <?php |
||
| 7 | /** |
||
| 8 | * Class RouterResponseTest |
||
| 9 | * @package Tests\Router |
||
| 10 | */ |
||
| 11 | class RouterResponseTest extends \PHPUnit_Framework_TestCase |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | public $code; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string|\Closure |
||
| 21 | */ |
||
| 22 | public $handler; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | public $names; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | public $vars; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var RouterResponse |
||
| 36 | */ |
||
| 37 | public $routerResponse; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * RouterResponse setUp. |
||
| 41 | */ |
||
| 42 | public function setUp() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * |
||
| 53 | */ |
||
| 54 | public function testGetStatusCode() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * |
||
| 61 | */ |
||
| 62 | public function testGetHandler() |
||
| 63 | { |
||
| 64 | $this->assertEquals($this->handler, $this->routerResponse->getHandler()); |
||
| 83 |