public function isAllOf(array $tests) {
    foreach ($tests as $test) {
      if (! $this->is($test)) {
        return FALSE;
      }
    }
    return TRUE;
  }
public function isAllOf(array $tests) {
    foreach ($tests as $test) {
      if (! $this->is($test)) {
        return FALSE;
      }
    }
    return TRUE;
  }
public function isAllOf ( array $ tests ) { foreach ( $ tests as $ test ) { if ( ! $ this -> is ( $ test ) ) { return FALSE ; } } return TRUE ; }
Tests if this node matches all of the tests in the array.

@param string|callable[] $tests

@return boolean
Tests if this node matches all of the tests in the array .