1 simpletest.test SimpleTestFunctionalTest::stubTest()

Test to be run and the results confirmed.

File

core/modules/simpletest/tests/simpletest.test, line 146
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.
  $i = 1 / 0;

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

  // Generates a warning inside a PHP function.
  array_key_exists(NULL, NULL);

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