You are here

class ExampleTest in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 tests/DrupalPractice/Commenting/ExpectedExceptionUnitTest.inc \ExampleTest
  2. 8.2 coder_sniffer/DrupalPractice/Test/Commenting/ExpectedExceptionUnitTest.inc \ExampleTest

Hierarchy

Expanded class hierarchy of ExampleTest

File

tests/DrupalPractice/Commenting/ExpectedExceptionUnitTest.inc, line 3

View source
class ExampleTest extends UnitTestCase {

  /**
   * Test 1.
   *
   * @expectedException TestException
   * @expectedExceptionCode 100
   * @expectedExceptionMessage Message here
   * @expectedExceptionMessageRegExp /.+/
   */
  public function test1() {
  }

}

Members