Beispiel #1
0
 /**
  * Test AJAX method detection with misspelled header
  */
 public function testIsAjaxWithMisspelledHeader()
 {
     $env = \Slim\Environment::mock(array('X_REQUESTED_WITH' => 'foo'));
     $req = new \Slim\Http\Request($env);
     $this->assertFalse($req->isAjax());
     $this->assertFalse($req->isXhr());
 }