RouterHeaderPluginTest::synopsis()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Vectorface\SnappyRouterTests\Plugin\HttpHeader;
4
5
use PHPUnit\Framework\TestCase;
6
use Vectorface\SnappyRouter\Handler\ControllerHandler;
7
use Vectorface\SnappyRouter\Plugin\HttpHeader\RouterHeaderPlugin;
8
9
/**
10
 * Tests the router header plugin.
11
 * @copyright Copyright (c) 2014, VectorFace, Inc.
12
 * @author Dan Bruce <[email protected]>
13
 */
14
class RouterHeaderPluginTest extends TestCase
15
{
16
    /**
17
     * An overview of how to use the plugin.
18
     * @test
19
     */
20
    public function synopsis()
21
    {
22
        $handler = new ControllerHandler(array());
23
        $plugin = new RouterHeaderPlugin(array());
24
        $this->assertNull($plugin->afterhandlerSelected($handler));
25
    }
26
}
27