function SimpleTestFunctionalTest::stubTest in SimpleTest 6.2
Same name and namespace in other branches
- 7.2 simpletest.test \SimpleTestFunctionalTest::stubTest()
- 7 simpletest.test \SimpleTestFunctionalTest::stubTest()
Test to be run and the results confirmed.
1 call to SimpleTestFunctionalTest::stubTest()
- SimpleTestFunctionalTest::testWebTestRunner in ./
simpletest.test - Make sure that tests selected through the web interface are run and that the results are displayed correctly.
File
- ./
simpletest.test, line 118
Class
Code
function stubTest() {
$this
->pass($this->pass);
$this
->fail($this->fail);
$this
->drupalCreateUser(array(
$this->valid_permission,
));
$this
->drupalCreateUser(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');
}