minkphp / MinkGoutteDriver

Goutte driver for Mink framework
MIT License
299 stars 52 forks source link

No support for different request methods. #8

Closed georgevanvliet closed 11 years ago

georgevanvliet commented 12 years ago

Currently I cannot specify the request method that I want to use. For testing REST interfaces this is rather unfortunate :)

Currently all requests are set as 'GET' in BrowserkitDriver:

$this->client->request('GET', $this->prepareUrl($url));

Please allow for an optional parameter to specify the request method.

stof commented 12 years ago

Mink is about emulating a browser. With a browser, you cannot send a POST request to a given url, you need to submit a form for this. If you want to test a REST api, use an API client (Buzz or Guzzle for instance), not a browser emulator.