function SimpleTestFunctionalTest::asText

Extract the text contained by the element.

Parameters

$element: Element to extract text from.

Return value

Extracted text.

4 calls to SimpleTestFunctionalTest::asText()
SimpleTestFunctionalTest::getResultFieldSet in drupal-7.x/modules/simpletest/simpletest.test
Get the fieldset containing the results for group this test is in.
SimpleTestFunctionalTest::getResultFieldSet in drupal-7.x/modules/simpletest/simpletest.test
Get the fieldset containing the results for group this test is in.
SimpleTestFunctionalTest::getTestResults in drupal-7.x/modules/simpletest/simpletest.test
Get the results from a test and store them in the class array $results.
SimpleTestFunctionalTest::getTestResults in drupal-7.x/modules/simpletest/simpletest.test
Get the results from a test and store them in the class array $results.

Archivo

drupal-7.x/modules/simpletest/simpletest.test, line 306
Tests for simpletest.module.

Class

SimpleTestFunctionalTest

Código

function asText(SimpleXMLElement $element) {
  if (!is_object($element)) {
    return $this->fail('The element is not an element.');
  }
  return trim(html_entity_decode(strip_tags($element->asXML())));
}