/** * @test * @dataProvider requestSupportedMethods * @param string $method */ public function shouldNoCreateWorkAroundWhenSupportedMethods($method) { //when $form = formTag('/users/add', $method); //then $this->assertContains('method="' . $method . '"', $form); $this->assertNotContains('value="' . $method . '" name="_method"', $form); }
public function start($url, $method = 'post', $attributes = array()) { return formTag($url, $method, $attributes) . hiddenTag('csrftoken', CsrfProtector::getCsrfToken()); }