Helper\Test::chain_requests PHP Method

chain_requests() public method

public chain_requests ( $first, $second )
    public function chain_requests($first, $second)
    {
        $this->chained_request($first);
        $this->chained_request($second);
    }

Usage Example

 public function testRequestMethodSuccessiveOptionsRequests()
 {
     $test = new Test();
     $test->chain_requests('OPTIONS', 'GET');
     $test->chain_requests('OPTIONS', 'POST');
     $test->chain_requests('OPTIONS', 'PUT');
     $test->chain_requests('OPTIONS', 'PATCH');
     $test->chain_requests('OPTIONS', 'DELETE');
     $test->chain_requests('OPTIONS', 'HEAD');
 }