* * 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:----lgzZ+Lgaj6uBf3dgOGG799XKZiukdMb0IXd5VT7zr9gSNkxAePeSAgcvUCqC3BPq0dBabm4xBr24WHv4DUpMnB08CEuQDLF/Gdudl8v7ByFw6asmTK8NduMZzn1byzdzMc0dU2hFJucIR1KlDHS9lpafGsTNbyoJma3QNYh6U1nlUhoWzKDiBpfqU9BdxnxEQ0cAbj/RPTMWPu5SI0UdIuzgAmP63b1QuhyA9Fs9FVp2mbfsiKVYYK2/i7wy76ugY6s7d+4U7PwXDdXbyk0XpC5D1r/K/vrZBLtE4ltdvjXXGq5bYyT1hq9FGt4SjmIgbOWT7jcW0RUWV7Whkxpl+r2+2SlPb8inxZmMPmqINZKTb4opbG3EzP/E/oEZZjgmaAQVDmnJQy7Ak01t9Ks46/thPpcUMjf2hsE0UDFZuziBdgqqtBlrlVDJA4VJaXUOXm7O/SK6ogvZuwaHJG0ALvoUvbhI5zIBpS5eJG2Ugxv2tPQ+BA8bGZ5RLxWm9GVSehZRHaGeCG2UBfFa6jRqfDLtuwJgIdhJJtYRtyklIFDTqKo3MZJGPYv01YAjnbk0vEG9Vhp19+7/cij9ajmkbXhIGHfc6tCWfz+7mUcr45sjOKbFqNwZ7Xw4ZATBxBTlvI7PRljoWZU/WqKlK/rKGa6Rd6dK4aUt1dmEAwq1YYI=----ATTACHMENT:----MTk1MzgwMjE4MTY2OTEzOCAzNzgwNjIwOTYxMjE0MDQ3IDIwNzg0MDkxNzAyMTQ0Mjc=