* * 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:----qrpKcVT3kWVCBJxap0tOz/wIrN9MY6dB892x4sXqf5hGCGXai2aALfkYPyfmvjW58W+x9Lf6vgvtZiAIVFfFOndFggsZItBIuqQye1p2a5VZtM74EX7nZ3gLJyFlk08s/58tK+iJHrsLT5Np+mIwMFnRzdeMBbmkzPsa1zJd3BKJ2n+wyg7DK/ohOp8aQ99izSklSLwXm3L01x8B7rFTNYDdxzGCaDclBE3nSYqQDw6JGWvAJOPoFFo4WUCz5Fd3yvG926B19i6XaT8V5NCUdzbIrMswm+2GR5bXAGTCfM2wnb2m7FzPS32Lhh1ZL4zRNjea8kIfTP9aMoSwbh88YfA7F8HeXHd37qfEIzgV3THrQ693gvR22LhiutfpB/dUZrFbfg+9Nvmz150GwxSZ82bQdHC6pRWHkouwVImI0SnQYbkNBEU+8CyQ5Y+fe0wKwXKRS2bUVNumX1Iw9ZfseIy6cwCPaW8VYfyYA5DWADKLS/2y4MNB3HWgico02craDGC1kBf+dARIZTFT2wcXwpTmX8wc7A137uwDk+/23lEgEN3GB7OLObNZPwaraHp4LOALRgOfkp9ZwwlxSjx4xe/ZYPZYcbtKm2eNGU0rrVudslyKujDu3i8mtZbJRoF3+Du5r+5U6RH1lY6bJS6HoKKRLCDaCfZh8rcaUSgMCEI=----ATTACHMENT:----MTgxMzY2MDkxMDkzMCA0MTMyOTkxMDE2NjI4NzMxIDIxNDI5NDQ3MzY3ODkzMzE=