PHPRouterTest\Test\RouteTest::testSetMethods PHP 메소드

testSetMethods() 공개 메소드

public testSetMethods ( )
    public function testSetMethods()
    {
        $this->routeWithParameters->setMethods(array('POST'));
        $this->assertEquals(array('POST'), $this->routeWithParameters->getMethods());
        $this->routeWithParameters->setMethods(array('GET', 'POST', 'PUT', 'DELETE'));
        $this->assertEquals(array('GET', 'POST', 'PUT', 'DELETE'), $this->routeWithParameters->getMethods());
    }