PhlyTest\Conduit\RouteTest::testPathAndHandlerAreAccessibleAfterInstantiation PHP Method

testPathAndHandlerAreAccessibleAfterInstantiation() public method

    public function testPathAndHandlerAreAccessibleAfterInstantiation()
    {
        $path = '/foo';
        $handler = function () {
        };
        $route = new Route($path, $handler);
        $this->assertSame($path, $route->path);
        $this->assertSame($handler, $route->handler);
    }