public function validateMarkup(array $messageFilterConfiguration = array())
    {
        $markup = $this->markupProvider->getMarkup();
        $messages = $this->markupValidator->validate($markup);

        $this->messageFilter->setConfiguration($messageFilterConfiguration);
        $filteredMessages = $this->messageFilter->filterMessages($messages);

        if (empty($filteredMessages) === false) {
            $messagesString = $this->messagePrinter->getMessagesString($filteredMessages);
            $this->fail($messagesString);
        }

        // Validation succeeded.
        $this->assertTrue(true);
    }
public function validateMarkup(array $messageFilterConfiguration = array())
    {
        $markup = $this->markupProvider->getMarkup();
        $messages = $this->markupValidator->validate($markup);

        $this->messageFilter->setConfiguration($messageFilterConfiguration);
        $filteredMessages = $this->messageFilter->filterMessages($messages);

        if (empty($filteredMessages) === false) {
            $messagesString = $this->messagePrinter->getMessagesString($filteredMessages);
            $this->fail($messagesString);
        }

        // Validation succeeded.
        $this->assertTrue(true);
    }
public function validateMarkup ( array $ messageFilterConfiguration = array ( ) ) { $ markup = $ this -> markupProvider -> getMarkup ( ) ; $ messages = $ this -> markupValidator -> validate ( $ markup ) ; $ this -> messageFilter -> setConfiguration ( $ messageFilterConfiguration ) ; $ filteredMessages = $ this -> messageFilter -> filterMessages ( $ messages ) ; if ( empty ( $ filteredMessages ) === false ) { $ messagesString = $ this -> messagePrinter -> getMessagesString ( $ filteredMessages ) ; $ this -> fail ( $ messagesString ) ; } // Validation succeeded. $ this -> assertTrue ( true ) ; }
Validates page markup via a markup validator.
Allows to recongigure message filter component.

@param array $messageFilterConfiguration Message filter configuration.
Validates page markup via a markup validator . Allows to recongigure message filter component .