library/QATools/QATools/PageObject/PageUrlMatcher/PageUrlMatcherRegistry.php
protected function ensureAnnotationsAreValid(array $annotations, $annotation_name)
	{
		foreach ( $annotations as $annotation ) {
			if ( !$annotation->isValid() ) {
				throw new PageUrlMatcherException(
					'The "' . $annotation_name . '" annotation is not valid.',
					PageUrlMatcherException::TYPE_INVALID_ANNOTATION
				);
			}
		}
	}
protected function ensureAnnotationsAreValid(array $annotations, $annotation_name)
	{
		foreach ( $annotations as $annotation ) {
			if ( !$annotation->isValid() ) {
				throw new PageUrlMatcherException(
					'The "' . $annotation_name . '" annotation is not valid.',
					PageUrlMatcherException::TYPE_INVALID_ANNOTATION
				);
			}
		}
	}
protected function ensureAnnotationsAreValid ( array $ annotations , $ annotation_name ) { foreach ( $ annotations as $ annotation ) { if ( ! $ annotation -> isValid ( ) ) { throw new PageUrlMatcherException ( 'The "' . $ annotation_name . '" annotation is not valid.' , PageUrlMatcherException :: TYPE_INVALID_ANNOTATION ) ; } } }
Checks that all annotations are valid.

@param IMatchUrlAnnotation[] $annotations     Annotations.
@param string                $annotation_name Annotation name.

@return void
@throws PageUrlMatcherException When annotations are not valid.
Checks that all annotations are valid .