use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\Request;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class HttpFoundationRequestHandlerTest extends AbstractRequestHandlerTestCase
{ public function testRequestShouldNotBeNull() { $this->
expectException(UnexpectedTypeException::
class);
$this->requestHandler->
handleRequest($this->
createForm('name', 'GET'
));
} public function testRequestShouldBeInstanceOfRequest() { $this->
expectException(UnexpectedTypeException::
class);
$this->requestHandler->
handleRequest($this->
createForm('name', 'GET'
),
new \
stdClass());
} protected function setRequestData($method,
$data,
$files =
[]) { $this->request = Request::
create('http://localhost',
$method,
$data,
[],
$files);
}