public function testIsAjax() { $request = new Request($this->container, array(), array(), array(), array(), array()); $this->assertFalse($request->isAjax()); $request = new Request($this->container, array('HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest'), array(), array(), array(), array()); $this->assertTrue($request->isAjax()); }