class ExampleTest

Same name in this branch
  1. 7.x modules/simpletest/tests/psr_4_test/src/Tests/ExampleTest.php \Drupal\psr_4_test\Tests\ExampleTest

Hierarchy

  • class \Drupal\psr_0_test\Tests\ExampleTest extends \Drupal\psr_0_test\Tests\DrupalWebTestCase

Expanded class hierarchy of ExampleTest

File

modules/simpletest/tests/psr_0_test/lib/Drupal/psr_0_test/Tests/ExampleTest.php, line 5

Namespace

Drupal\psr_0_test\Tests
View source
class ExampleTest extends \DrupalWebTestCase {
    public static function getInfo() {
        return array(
            'name' => 'PSR0 example test: PSR-0 in disabled modules.',
            'description' => 'We want to assert that this test case is being discovered.',
            'group' => 'SimpleTest',
        );
    }
    function testArithmetics() {
        $this->assert(1 + 1 == 2, '1 + 1 == 2');
    }

}

Members

Title Sort descending Modifiers Object type Summary
ExampleTest::getInfo public static function
ExampleTest::testArithmetics function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.