Respect\Rest\RouterTest::testMagicConstructorCannotRouteSomeStaticValues PHP Метод

testMagicConstructorCannotRouteSomeStaticValues() публичный Метод

public testMagicConstructorCannotRouteSomeStaticValues ( $staticValue, $reason )
    public function testMagicConstructorCannotRouteSomeStaticValues($staticValue, $reason)
    {
        $router = new Router();
        $nonStaticRoute = $router->get('/', $staticValue);
        $router->run();
        // __toString is not allowed to throw exceptions
        $this->assertNotInstanceOf('Respect\\Rest\\Routes\\StaticValue', $nonStaticRoute, $reason);
    }