PhlytyTest\AppTest::testCanSetMethodsRouteRespondsToAsArray PHP Method

testCanSetMethodsRouteRespondsToAsArray() public method

    public function testCanSetMethodsRouteRespondsToAsArray()
    {
        $map = $this->app->map('/:controller', 'bogus-callback');
        $map->via(['get', 'post']);
        $this->assertTrue($map->respondsTo('get'));
        $this->assertTrue($map->respondsTo('post'));
        $this->assertFalse($map->respondsTo('put'));
    }
AppTest