sescandell
6/30/2013 - 4:34 PM

gistfile1.php

public function testDoNotSubmitIfNameNoInRequestAndPostRequest()
{
    $form = $this->getMockForm('param1', 'POST');

    $this->setRequestData('POST', array(
        'somethingelse' => array()
    ));

    $form->expects($this->never())
        ->method('submit');

    $this->requestHandler->handleRequest($form, $this->request);
}