1 simpletest.test SimpleTestFunctionalTest::stubTest()

Test to be run and the results confirmed.

File

core/modules/simpletest/tests/simpletest.test, line 166
Tests for simpletest.module.

Class

SimpleTestFunctionalTest

Code

function stubTest() {
  $this->pass($this->pass);
  $this->fail($this->fail);

  $this->backdropCreateUser(array($this->valid_permission));
  $this->backdropCreateUser(array($this->invalid_permission));

  $this->pass(t('Test ID is @id.', array('@id' => $this->testId)));

  // Generates a warning.
  $a = '';
  foreach ($a as $b) {

  }

  // Call an assert function specific to that class.
  $this->assertNothing();

  // Generates 3 warnings inside a PHP function.
  simplexml_load_string('<fake>');

  debug('Foo', 'Debug');
}