Ejemplo n.º 1
0
 public function testGetRawVal()
 {
     $req = new FauxRequest(['x' => 'Value', 'y' => ['a'], 'crlf' => "A\r\nb"]);
     $this->assertSame('Value', $req->getRawVal('x'));
     $this->assertSame(null, $req->getRawVal('z'), 'Not found');
     $this->assertSame(null, $req->getRawVal('y'), 'Array is ignored');
     $this->assertSame("A\r\nb", $req->getRawVal('crlf'), 'CRLF');
 }