* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\BrowserKit\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\BrowserKit\Request; class RequestTest extends TestCase { public function testGetUri() { $request = new Request('http://www.example.com/', 'get'); $this->assertEquals('http://www.example.com/', $request->getUri(), '->getUri() returns the URI of the request'); } public function testGetMethod() { $request = new Request('http://www.example.com/', 'get'); $this->assertEquals('get', $request->getMethod(), '->getMethod() returns the method of the request'); } public function testGetParameters() { $request = new Request('http://www.example.com/', 'get', array('foo' => 'bar')); $this->assertEquals(array('foo' => 'bar'), $request->getParameters(), '->getParameters() returns the parameters of the request'); } public function testGetFiles() { $request = new Request('http://www.example.com/', 'get', array(), array('foo' => 'bar')); $this->assertEquals(array('foo' => 'bar'), $request->getFiles(), '->getFiles() returns the uploaded files of the request'); } public function testGetCookies() { $request = new Request('http://www.example.com/', 'get', array(), array(), array('foo' => 'bar')); $this->assertEquals(array('foo' => 'bar'), $request->getCookies(), '->getCookies() returns the cookies of the request'); } public function testGetServer() { $request = new Request('http://www.example.com/', 'get', array(), array(), array(), array('foo' => 'bar')); $this->assertEquals(array('foo' => 'bar'), $request->getServer(), '->getServer() returns the server parameters of the request'); } } __halt_compiler();----SIGNATURE:----Uxk4HuPs3LyYzJbDirnrxrhio52qbnvuRNXzcQV2W79lFY1us0/qs7Ok/PpCVxVHfnKo+2wDPeYvX9ZNH6TOUNvtnZtBcI1crw3RhylBtzIM/amcVYJa3HdIhfi8+pZTr5ydfNWQTjHVHS23oQkqgiq+LzaTsw+wAykwCz1UzPCLn2TQYrFGz5rcYEuOKPTlg3mLbfezmpMVXnDgYn8BxAbSJgCPMSi7c55w2Q9B89/6sXjjhPv91TPe//BrJnsHejLyMM+gnGWMk9jFzrS3LLjDJxZ80Ek2xjvZY3U6pCWOedEYbZsgYn5zyH18klqy5yQy08d2sUjGZdhC7a3KD6oNLyudpT8zsYlBAJ1wWIsAvbfy9Slf2ApcQRmxzsws0ZW1DPEn3njgYrVHl2VxT6XJkRx07x0mwjNZ+F4+ICD7P97NsJy0eFHAjYicPIGsW3wucWbVV1hDkZcOAux7rWAo+dwODe9lki2a95k6mrpFtkvtpcsO7MzQdqHxlnYOTl4tkrriCiQbEmm6tPujDvN1PuwQU2vpvP6wPo6LI4i9u/eku3uwDElI0v/8RgrBGNTI9jWx9Gg1U6OiIBaxX50uZpEN9dJmsWHFRuR8lnktXMSPvg8ICd4Vmmb4bUhHPa2hi7kwEacZLWRqClyEG7OqEZ5tD6+YuczS/DAzng4=----ATTACHMENT:----NDQxMTY3OTAyNjE2NzgxOSA2ODI2Njc5NDgyNzI3MTY5IDczMzYzODgyNjgyNjgwNg==