Exemplo n.º 1
0
 public function testUserAgent()
 {
     // Test data
     $user_agent = 'phpunittt';
     $request = new Request();
     $request->headers()->set('USER_AGENT', $user_agent);
     $this->assertSame($user_agent, $request->userAgent());
 }