isAll() public method

Allows you to test multiple types and union the results. See CakeRequest::is() for how to add additional types and the built-in types.
See also: CakeRequest::is()
public isAll ( array $types ) : boolean
$types array The types to check.
return boolean Success.
 /**
  * Test isAll()
  *
  * @return void
  */
 public function testIsAll()
 {
     $request = new CakeRequest('some/path');
     $_SERVER['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest';
     $_SERVER['REQUEST_METHOD'] = 'GET';
     $this->assertTrue($request->isAll(array('ajax', 'get')));
     $this->assertFalse($request->isAll(array('post', 'get')));
     $this->assertFalse($request->isAll(array('ajax', 'post')));
 }