Пример #1
0
 /**
  * @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);
 }
Пример #2
0
 public function start($url, $method = 'post', $attributes = array())
 {
     return formTag($url, $method, $attributes) . hiddenTag('csrftoken', CsrfProtector::getCsrfToken());
 }