MvcLite\Request::isAjax
Method to indicate whether the current request is AJAX or not
Signature
public function isAjax()
Returns
- boolean
Test Coverage
Information
- Coverage: 3/3 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
- [ PASSED ] — MvcLite\ControllerTest::testInit
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- [ PASSED ] — MvcLite\RequestTest::testIsAjax